mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-24 05:54:25 +00:00
Guard against crash looking up solid side info on controller.
This commit is contained in:
1 parent
df65da0c53
commit
785c4a1dd1
2 files changed
+3
-1
No files matched your search
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user