Fix (NoSuchMethod)Exception being caught instead of NoSuchMethodError
Closes #62
This commit is contained in:
@@ -123,7 +123,7 @@ public class AnySilentContainer implements IAnySilentContainer {
|
|||||||
try {
|
try {
|
||||||
// 1.11.2
|
// 1.11.2
|
||||||
return world.a(axisAlignedBB.a(blockPosition.shift(enumDirection)));
|
return world.a(axisAlignedBB.a(blockPosition.shift(enumDirection)));
|
||||||
} catch (Exception e) {
|
} catch (NoSuchMethodError e) {
|
||||||
// 1.11
|
// 1.11
|
||||||
return world.b(axisAlignedBB.a(blockPosition.shift(enumDirection)));
|
return world.b(axisAlignedBB.a(blockPosition.shift(enumDirection)));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user