Fix drawers not marking the chunk they're in for saving, which caused lost/duped items (#15)

This commit is contained in:
Jakub Szewczyk authored and GitHub committed 2022-03-30 18:15:23 +02:00
1 parent 5000dc1f28
commit 2bf1fa2369
1 file changed
+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);
}
}