Guard against crash looking up solid side info on controller.

This commit is contained in:
Justin Aquadro committed 2015-05-06 19:20:15 -04:00
1 parent df65da0c53
commit 785c4a1dd1
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ buildscript {
apply plugin: 'forge'
version = "1.7.10-1.4.2"
version = "1.7.10-1.4.3"
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = "StorageDrawers"
@@ -118,6 +118,8 @@ public class BlockController extends BlockContainer implements INetworked
@Override
public boolean isSideSolid (IBlockAccess world, int x, int y, int z, ForgeDirection side) {
if (getTileEntity(world, x, y, z) == null)
return true;
if (side.ordinal() != getTileEntity(world, x, y, z).getDirection())
return true;