diff options
author | madmaxoft <github@xoft.cz> | 2013-08-03 20:05:07 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-08-03 20:05:07 +0200 |
commit | b688ba9be8da66c2df428f0842be4b73092baa81 (patch) | |
tree | 20ba6b4b2145d4daca1ee0923ef3a9492c29f2cc /source/BlockEntities | |
parent | Lump in some core changes. (diff) | |
download | cuberite-b688ba9be8da66c2df428f0842be4b73092baa81.tar cuberite-b688ba9be8da66c2df428f0842be4b73092baa81.tar.gz cuberite-b688ba9be8da66c2df428f0842be4b73092baa81.tar.bz2 cuberite-b688ba9be8da66c2df428f0842be4b73092baa81.tar.lz cuberite-b688ba9be8da66c2df428f0842be4b73092baa81.tar.xz cuberite-b688ba9be8da66c2df428f0842be4b73092baa81.tar.zst cuberite-b688ba9be8da66c2df428f0842be4b73092baa81.zip |
Diffstat (limited to 'source/BlockEntities')
-rw-r--r-- | source/BlockEntities/ChestEntity.cpp | 2 | ||||
-rw-r--r-- | source/BlockEntities/HopperEntity.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/BlockEntities/ChestEntity.cpp b/source/BlockEntities/ChestEntity.cpp index 24d2aef11..d5cd076be 100644 --- a/source/BlockEntities/ChestEntity.cpp +++ b/source/BlockEntities/ChestEntity.cpp @@ -123,7 +123,7 @@ void cChestEntity::UsedBy(cPlayer * a_Player) // We cannot properly detect contents change, but such a change doesn't happen without a player opening the chest first. // The few false positives aren't much to worry about int ChunkX, ChunkZ; - cChunkDef::BlockToChunk(m_PosX, m_PosY, m_PosZ, ChunkX, ChunkZ); + cChunkDef::BlockToChunk(m_PosX, m_PosZ, ChunkX, ChunkZ); m_World->MarkChunkDirty(ChunkX, ChunkZ); } diff --git a/source/BlockEntities/HopperEntity.cpp b/source/BlockEntities/HopperEntity.cpp index 23e4b8096..591db7b4d 100644 --- a/source/BlockEntities/HopperEntity.cpp +++ b/source/BlockEntities/HopperEntity.cpp @@ -125,7 +125,7 @@ void cHopperEntity::UsedBy(cPlayer * a_Player) // We cannot properly detect contents change, but such a change doesn't happen without a player opening the chest first. // The few false positives aren't much to worry about int ChunkX, ChunkZ; - cChunkDef::BlockToChunk(m_PosX, m_PosY, m_PosZ, ChunkX, ChunkZ); + cChunkDef::BlockToChunk(m_PosX, m_PosZ, ChunkX, ChunkZ); m_World->MarkChunkDirty(ChunkX, ChunkZ); } |