mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-19 11:59:19 +00:00
Fix redstone not updating via controller
This commit is contained in:
1 parent
9013af7034
commit
0bebb18c91
4 files changed
+18
-1
No files matched your search
+1
-1
@@ -17,7 +17,7 @@ buildscript {
|
||||
|
||||
apply plugin: 'forge'
|
||||
|
||||
version = "1.7.10-1.10.1"
|
||||
version = "1.7.10-1.10.2"
|
||||
group= "com.jaquadro.minecraft.storagedrawers" // http://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
archivesBaseName = "StorageDrawers"
|
||||
|
||||
|
||||
@@ -75,5 +75,10 @@ public class TileEntityDrawersStandard extends TileEntityDrawers
|
||||
public boolean isVendingUnlimited (int slot) {
|
||||
return TileEntityDrawersStandard.this.isVending();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRedstone (int slot) {
|
||||
return TileEntityDrawersStandard.this.isRedstone();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -67,6 +67,11 @@ public class DefaultStorageProvider implements IStorageProvider
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isRedstone (int slot) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void markAmountDirty (int slot) {
|
||||
if (tile.getWorldObj().isRemote)
|
||||
@@ -78,6 +83,11 @@ public class DefaultStorageProvider implements IStorageProvider
|
||||
NetworkRegistry.TargetPoint targetPoint = new NetworkRegistry.TargetPoint(tile.getWorldObj().provider.dimensionId, tile.xCoord, tile.yCoord, tile.zCoord, 500);
|
||||
|
||||
StorageDrawers.network.sendToAllAround(message, targetPoint);
|
||||
|
||||
if (isRedstone(slot)) {
|
||||
tile.getWorldObj().notifyBlocksOfNeighborChange(tile.xCoord, tile.yCoord, tile.zCoord, tile.getBlockType());
|
||||
tile.getWorldObj().notifyBlocksOfNeighborChange(tile.xCoord, tile.yCoord - 1, tile.zCoord, tile.getBlockType());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -25,6 +25,8 @@ public interface IStorageProvider
|
||||
|
||||
public boolean isVendingUnlimited (int slot);
|
||||
|
||||
public boolean isRedstone (int slot);
|
||||
|
||||
public void markAmountDirty (int slot);
|
||||
|
||||
public void markDirty (int slot);
|
||||
|
||||
Reference in new issue
Block a user