summaryrefslogtreecommitdiffstats
path: root/source/Mobs/Enderman.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Mobs/Enderman.cpp')
-rw-r--r--source/Mobs/Enderman.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/Mobs/Enderman.cpp b/source/Mobs/Enderman.cpp
index 36ee975b1..216fab85f 100644
--- a/source/Mobs/Enderman.cpp
+++ b/source/Mobs/Enderman.cpp
@@ -39,8 +39,9 @@ void cEnderman::Tick(float a_Dt)
{
cMonster::Tick(a_Dt);
- //TODO Same as stated in cSkeleton
- if (GetWorld()->GetWorldTime() < (12000 + 1000) && GetMetaData() != BURNING) { //if daylight
+ // TODO Same as stated in cSkeleton
+ if ((GetWorld()->GetTimeOfDay() < (12000 + 1000)) && (GetMetaData() != BURNING))
+ {
SetMetaData(BURNING); // BURN, BABY, BURN! >:D
}
}