diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-07-30 13:59:47 +0200 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-07-30 13:59:47 +0200 |
commit | 5daeba7e887ecf15b2facd3801f424a5bfcaa2e6 (patch) | |
tree | 817d9f754bb77f19b77eadb78af77821e2c7777d /src/Mobs/Enderman.cpp | |
parent | Changed comment (diff) | |
download | cuberite-5daeba7e887ecf15b2facd3801f424a5bfcaa2e6.tar cuberite-5daeba7e887ecf15b2facd3801f424a5bfcaa2e6.tar.gz cuberite-5daeba7e887ecf15b2facd3801f424a5bfcaa2e6.tar.bz2 cuberite-5daeba7e887ecf15b2facd3801f424a5bfcaa2e6.tar.lz cuberite-5daeba7e887ecf15b2facd3801f424a5bfcaa2e6.tar.xz cuberite-5daeba7e887ecf15b2facd3801f424a5bfcaa2e6.tar.zst cuberite-5daeba7e887ecf15b2facd3801f424a5bfcaa2e6.zip |
Diffstat (limited to 'src/Mobs/Enderman.cpp')
-rw-r--r-- | src/Mobs/Enderman.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/Mobs/Enderman.cpp b/src/Mobs/Enderman.cpp index 6b7a22757..9c1cb7ce3 100644 --- a/src/Mobs/Enderman.cpp +++ b/src/Mobs/Enderman.cpp @@ -116,15 +116,7 @@ void cEnderman::CheckEventSeePlayer() ASSERT(Callback.GetPlayer() != NULL); - int CX, CZ; - cChunkDef::BlockToChunk(POSX_TOINT, POSZ_TOINT, CX, CZ); - if (!GetWorld()->IsChunkLighted(CX, CZ)) - { - GetWorld()->QueueLightChunk(CX, CZ); - return; - } - - if ((GetWorld()->GetBlockSkyLight(POSX_TOINT, POSY_TOINT, POSZ_TOINT) - GetWorld()->GetSkyDarkness() < 15) && !Callback.GetPlayer()->IsGameModeCreative()) + if (!Callback.GetPlayer()->IsGameModeCreative()) { super::EventSeePlayer(Callback.GetPlayer()); m_EMState = CHASING; |