Fix exception mismatch for entity types (#5344)

This commit is contained in:
Vincent Lee 2019-01-11 13:47:36 -06:00 committed by LexManos
parent 985a48f02e
commit f3715c3e2e

View file

@ -20,3 +20,12 @@
public static final EntityType<EntityAreaEffectCloud> field_200788_b = func_200712_a("area_effect_cloud", EntityType.Builder.func_201757_a(EntityAreaEffectCloud.class, EntityAreaEffectCloud::new));
public static final EntityType<EntityArmorStand> field_200789_c = func_200712_a("armor_stand", EntityType.Builder.func_201757_a(EntityArmorStand.class, EntityArmorStand::new));
public static final EntityType<EntityTippedArrow> field_200790_d = func_200712_a("arrow", EntityType.Builder.func_201757_a(EntityTippedArrow.class, EntityTippedArrow::new));
@@ -411,7 +412,7 @@
if (this.field_200710_b) {
try {
type = DataFixesManager.func_210901_a().getSchema(DataFixUtils.makeKey(1519)).getChoiceType(TypeReferences.field_211298_n, p_206830_1_);
- } catch (IllegalStateException illegalstateexception) {
+ } catch (IllegalArgumentException illegalstateexception) {
if (SharedConstants.field_206244_b) {
throw illegalstateexception;
}