mirror of
https://github.com/GTNewHorizons/StorageDrawers.git
synced 2026-11-13 00:47:31 +00:00
Fix drawers not marking the chunk they're in for saving, which caused lost/duped items (#15)
This commit is contained in:
1 parent
5000dc1f28
commit
2bf1fa2369
1 file changed
+2
+2
@@ -89,6 +89,7 @@ public class DefaultStorageProvider implements IStorageProvider
|
||||
|
||||
StorageDrawers.network.sendToAllAround(message, targetPoint);
|
||||
|
||||
tile.getWorldObj().markTileEntityChunkModified(tile.xCoord, tile.yCoord, tile.zCoord, tile);
|
||||
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());
|
||||
@@ -101,5 +102,6 @@ public class DefaultStorageProvider implements IStorageProvider
|
||||
return;
|
||||
|
||||
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord, tile.zCoord);
|
||||
tile.getWorldObj().markTileEntityChunkModified(tile.xCoord, tile.yCoord, tile.zCoord, tile);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user