From 36be4a89f8bedca7a7b369289562cf71041a3db6 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sat, 3 Jun 2017 20:17:53 +0100 Subject: Fixed double chests (#3741) Normal and trapped chests next to each other don't open a double chest window. Slot changes in the secondary chest are broadcast. Placing a chest in +x of another updates the original chest's metadata. --- src/Items/ItemChest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Items/ItemChest.h') diff --git a/src/Items/ItemChest.h b/src/Items/ItemChest.h index a714e5c96..d8cde2ae2 100644 --- a/src/Items/ItemChest.h +++ b/src/Items/ItemChest.h @@ -154,7 +154,7 @@ public: } // Adjust the existing chest, if any: - if (NeighborIdx > 0) + if (NeighborIdx != -1) { a_World.FastSetBlock(a_BlockX + CrossCoords[NeighborIdx].x, a_BlockY, a_BlockZ + CrossCoords[NeighborIdx].z, ChestBlockType, Meta); } -- cgit v1.2.3