mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-18 11:19:28 +00:00
Fix crash from missing block when a plugin mod is uninstalled
(cherry picked from commit 5a7bd9f57a)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user