Fix (NoSuchMethod)Exception being caught instead of NoSuchMethodError

Closes #62
This commit is contained in:
Jikoo 2017-01-30 13:35:58 -05:00
parent f27dd8a233
commit f54481e872

View file

@ -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)));
} }