Fix datafixer exception catch: Closes #5951

Signed-off-by: cpw <cpw+github@weeksfamily.ca>
This commit is contained in:
cpw 2019-07-20 19:59:08 -04:00
parent 9d82d822db
commit fcd9582133
No known key found for this signature in database
GPG Key ID: 8EB3DF749553B1B7
1 changed files with 7 additions and 1 deletions

View File

@ -111,7 +111,7 @@
private boolean field_225436_f;
private EntitySize field_220326_f = EntitySize.func_220314_b(0.6F, 1.8F);
@@ -553,6 +591,26 @@
@@ -553,11 +591,31 @@
return this;
}
@ -138,6 +138,12 @@
public EntityType<T> func_206830_a(String p_206830_1_) {
if (this.field_200710_b) {
try {
DataFixesManager.func_210901_a().getSchema(DataFixUtils.makeKey(SharedConstants.func_215069_a().getWorldVersion())).getChoiceType(TypeReferences.field_211298_n, p_206830_1_);
- } catch (IllegalStateException illegalstateexception) {
+ } catch (IllegalArgumentException illegalstateexception) { // Forge: fix catching wrong exception
if (SharedConstants.field_206244_b) {
throw illegalstateexception;
}
@@ -566,7 +624,7 @@
}
}