diff options
author | Samuel Barney <samjbarney@gmail.com> | 2013-10-24 01:41:36 +0200 |
---|---|---|
committer | Samuel Barney <samjbarney@gmail.com> | 2013-10-24 01:41:36 +0200 |
commit | 4666c1bf3082a9b313336389ac25013429f2145f (patch) | |
tree | 10c4c7fb704267ed1ed5a2ae3b2e4b7f63ab9490 /source/Mobs | |
parent | Removed my hackish Light functions (diff) | |
parent | APIDump: Added cChatColor constants. (diff) | |
download | cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.gz cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.bz2 cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.lz cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.xz cuberite-4666c1bf3082a9b313336389ac25013429f2145f.tar.zst cuberite-4666c1bf3082a9b313336389ac25013429f2145f.zip |
Diffstat (limited to '')
-rw-r--r-- | source/Mobs/Monster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Mobs/Monster.cpp b/source/Mobs/Monster.cpp index 599aa9cfc..7e35b97f1 100644 --- a/source/Mobs/Monster.cpp +++ b/source/Mobs/Monster.cpp @@ -718,8 +718,8 @@ void cMonster::HandleDaylightBurning(cChunk & a_Chunk) return; } - int RelX = (int)floor(GetPosX()) - a_Chunk.GetPosX() * cChunkDef::Width; - int RelZ = (int)floor(GetPosZ()) - a_Chunk.GetPosZ() * cChunkDef::Width; + int RelX = (int)floor(GetPosX()) - GetChunkX() * cChunkDef::Width; + int RelZ = (int)floor(GetPosZ()) - GetChunkZ() * cChunkDef::Width; if ( (a_Chunk.GetSkyLight(RelX, RelY, RelZ) == 15) && // In the daylight (a_Chunk.GetBlock(RelX, RelY, RelZ) != E_BLOCK_SOULSAND) && // Not on soulsand |