Skip to content

Commit 2bf1fa2

Browse files
authored
Fix drawers not marking the chunk they're in for saving, which caused lost/duped items (#15)
1 parent 5000dc1 commit 2bf1fa2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/com/jaquadro/minecraft/storagedrawers/storage/DefaultStorageProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ public void markAmountDirty (int slot) {
8989

9090
StorageDrawers.network.sendToAllAround(message, targetPoint);
9191

92+
tile.getWorldObj().markTileEntityChunkModified(tile.xCoord, tile.yCoord, tile.zCoord, tile);
9293
if (isRedstone(slot)) {
9394
tile.getWorldObj().notifyBlocksOfNeighborChange(tile.xCoord, tile.yCoord, tile.zCoord, tile.getBlockType());
9495
tile.getWorldObj().notifyBlocksOfNeighborChange(tile.xCoord, tile.yCoord - 1, tile.zCoord, tile.getBlockType());
@@ -101,5 +102,6 @@ public void markDirty (int slot) {
101102
return;
102103

103104
tile.getWorldObj().markBlockForUpdate(tile.xCoord, tile.yCoord, tile.zCoord);
105+
tile.getWorldObj().markTileEntityChunkModified(tile.xCoord, tile.yCoord, tile.zCoord, tile);
104106
}
105107
}

0 commit comments

Comments
 (0)