mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 03:39:09 +00:00
Fix crash from missing block when a plugin mod is uninstalled
This commit is contained in:
1 parent
7ec3b8bf9b
commit
5a7bd9f57a
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
|
||||
|
||||
Reference in new issue
Block a user