Skip to content

Commit

Permalink
Guard against crash looking up solid side info on controller.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaquadro committed May 6, 2015
1 parent df65da0 commit 785c4a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ public boolean onBlockActivated (World world, int x, int y, int z, EntityPlayer

@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;

Expand Down

0 comments on commit 785c4a1

Please sign in to comment.