Fix crash from missing block when a plugin mod is uninstalled

(cherry picked from commit 5a7bd9f57a)
This commit is contained in:
mezz committed 2015-01-25 22:25:36 -08:00
1 parent e6cbced8a2
commit eb010094ca
1 file changed
+2 -1
@@ -136,7 +136,8 @@ public class BlockBase extends BlockForestry {
/* INTERACTION */
@Override
public boolean isSideSolid(IBlockAccess world, int x, int y, int z, ForgeDirection side) {
return getDefinition(world, x, y, z).isSolidOnSide(world, x, y, z, side.ordinal());
MachineDefinition definition = getDefinition(world, x, y, z);
return definition != null && definition.isSolidOnSide(world, x, y, z, side.ordinal());
}
@Override