diff --git a/build.gradle b/build.gradle index 01e82b6..75e6ab7 100644 --- a/build.gradle +++ b/build.gradle @@ -17,7 +17,7 @@ buildscript { apply plugin: 'forge' -version = "1.7.10-1.9.9" +version = "1.7.10-1.9.10" group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "StorageDrawers" diff --git a/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java b/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java index 171e66c..9e7e242 100644 --- a/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java +++ b/src/com/jaquadro/minecraft/storagedrawers/block/tile/TileEntityDrawers.java @@ -171,6 +171,7 @@ public abstract class TileEntityDrawers extends BaseTileEntity implements IDrawe worldObj.markBlockForUpdate(xCoord, yCoord, zCoord); } worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType()); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord - 1, zCoord, getBlockType()); } } @@ -519,8 +520,10 @@ public abstract class TileEntityDrawers extends BaseTileEntity implements IDrawe IDrawer drawer = drawers[slot]; drawer.setStoredItemCount(drawer.getStoredItemCount() - stack.stackSize); - if (isRedstone() && worldObj != null) + if (isRedstone() && worldObj != null) { worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType()); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord - 1, zCoord, getBlockType()); + } // TODO: Reset empty drawer in subclasses @@ -777,8 +780,10 @@ public abstract class TileEntityDrawers extends BaseTileEntity implements IDrawe @Override public void markDirty () { inventory.markDirty(); - if (isRedstone() && worldObj != null) + if (isRedstone() && worldObj != null) { worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord, zCoord, getBlockType()); + worldObj.notifyBlocksOfNeighborChange(xCoord, yCoord - 1, zCoord, getBlockType()); + } super.markDirty(); }