summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorr.ramazanov <r.ramazanov@servplus.ru>2014-04-25 08:58:48 +0200
committerr.ramazanov <r.ramazanov@servplus.ru>2014-04-25 08:58:48 +0200
commit827c3760db5da766a99c42312aa95b43dded9436 (patch)
treed0b6d13a7dc236e8610fc8befc2cd9d84361bf2c
parentMobs shouldn't burn when it's Raining & Mob Knockback is far too much (diff)
downloadcuberite-827c3760db5da766a99c42312aa95b43dded9436.tar
cuberite-827c3760db5da766a99c42312aa95b43dded9436.tar.gz
cuberite-827c3760db5da766a99c42312aa95b43dded9436.tar.bz2
cuberite-827c3760db5da766a99c42312aa95b43dded9436.tar.lz
cuberite-827c3760db5da766a99c42312aa95b43dded9436.tar.xz
cuberite-827c3760db5da766a99c42312aa95b43dded9436.tar.zst
cuberite-827c3760db5da766a99c42312aa95b43dded9436.zip
-rw-r--r--src/Entities/Entity.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp
index 89275a418..402f94d08 100644
--- a/src/Entities/Entity.cpp
+++ b/src/Entities/Entity.cpp
@@ -798,11 +798,7 @@ void cEntity::TickBurning(cChunk & a_Chunk)
if (m_World->IsWeatherWet())
{
- int PosX = POSX_TOINT - a_Chunk.GetPosX() * cChunkDef::Width;
- int PosY = POSY_TOINT;
- int PosZ = POSZ_TOINT - a_Chunk.GetPosZ() * cChunkDef::Width;
-
- if (PosY > m_World->GetHeight(POSX_TOINT, POSZ_TOINT))
+ if (POSY_TOINT > m_World->GetHeight(POSX_TOINT, POSZ_TOINT))
{
m_TicksLeftBurning = 0;
}