summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Mobs/Enderman.cpp10
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;