diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-09-27 19:02:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-27 19:02:16 +0200 |
commit | 410d6c00453f2207ddb7a184590251b62b4769fa (patch) | |
tree | f204973b0481e4579f79077f2b5cd73dd94f6959 /src/BlockEntities/BlockEntity.h | |
parent | Remove unused Temporary namespace (diff) | |
download | cuberite-410d6c00453f2207ddb7a184590251b62b4769fa.tar cuberite-410d6c00453f2207ddb7a184590251b62b4769fa.tar.gz cuberite-410d6c00453f2207ddb7a184590251b62b4769fa.tar.bz2 cuberite-410d6c00453f2207ddb7a184590251b62b4769fa.tar.lz cuberite-410d6c00453f2207ddb7a184590251b62b4769fa.tar.xz cuberite-410d6c00453f2207ddb7a184590251b62b4769fa.tar.zst cuberite-410d6c00453f2207ddb7a184590251b62b4769fa.zip |
Diffstat (limited to '')
-rw-r--r-- | src/BlockEntities/BlockEntity.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/BlockEntities/BlockEntity.h b/src/BlockEntities/BlockEntity.h index 1933ed891..c133c186c 100644 --- a/src/BlockEntities/BlockEntity.h +++ b/src/BlockEntities/BlockEntity.h @@ -122,7 +122,7 @@ public: cWorld * GetWorld() const { return m_World; } int GetChunkX() const { return FAST_FLOOR_DIV(m_Pos.x, cChunkDef::Width); } - int GetChunkZ() const { return FAST_FLOOR_DIV(m_Pos.y, cChunkDef::Width); } + int GetChunkZ() const { return FAST_FLOOR_DIV(m_Pos.z, cChunkDef::Width); } int GetRelX() const { return m_RelX; } int GetRelZ() const { return m_RelZ; } |