diff options
author | peterbell10 <peterbell10@live.co.uk> | 2017-06-03 21:17:53 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-06-03 21:17:53 +0200 |
commit | 36be4a89f8bedca7a7b369289562cf71041a3db6 (patch) | |
tree | fab8f27bb0c0abdb2e16508c6180c38988ac6af1 /src/Items | |
parent | Fixed exp orb (#3744) (diff) | |
download | cuberite-36be4a89f8bedca7a7b369289562cf71041a3db6.tar cuberite-36be4a89f8bedca7a7b369289562cf71041a3db6.tar.gz cuberite-36be4a89f8bedca7a7b369289562cf71041a3db6.tar.bz2 cuberite-36be4a89f8bedca7a7b369289562cf71041a3db6.tar.lz cuberite-36be4a89f8bedca7a7b369289562cf71041a3db6.tar.xz cuberite-36be4a89f8bedca7a7b369289562cf71041a3db6.tar.zst cuberite-36be4a89f8bedca7a7b369289562cf71041a3db6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemChest.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |