diff options
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Blaze.cpp | 1 | ||||
-rw-r--r-- | src/Mobs/Ghast.cpp | 1 | ||||
-rw-r--r-- | src/Mobs/Path.cpp | 2 | ||||
-rw-r--r-- | src/Mobs/Skeleton.cpp | 1 |
4 files changed, 1 insertions, 4 deletions
diff --git a/src/Mobs/Blaze.cpp b/src/Mobs/Blaze.cpp index a772d830c..bd3b3f776 100644 --- a/src/Mobs/Blaze.cpp +++ b/src/Mobs/Blaze.cpp @@ -50,7 +50,6 @@ bool cBlaze::Attack(std::chrono::milliseconds a_Dt) FireCharge = nullptr; return false; } - m_World->BroadcastSpawnEntity(*FireCharge); ResetAttackCooldown(); // ToDo: Shoot 3 fireballs instead of 1. return true; diff --git a/src/Mobs/Ghast.cpp b/src/Mobs/Ghast.cpp index 9ac16866e..61813d0fe 100644 --- a/src/Mobs/Ghast.cpp +++ b/src/Mobs/Ghast.cpp @@ -50,7 +50,6 @@ bool cGhast::Attack(std::chrono::milliseconds a_Dt) GhastBall = nullptr; return false; } - m_World->BroadcastSpawnEntity(*GhastBall); ResetAttackCooldown(); return true; } diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp index 03f0ad31a..4db93050e 100644 --- a/src/Mobs/Path.cpp +++ b/src/Mobs/Path.cpp @@ -327,7 +327,7 @@ void cPath::BuildPath() { // Waypoints are cylinders that start at some particular x, y, z and have infinite height. // Submerging water waypoints allows swimming mobs to be able to touch them. - if (GetCell(CurrentCell->m_Location + Vector3i(0, -1, 0))->m_BlockType == E_BLOCK_STATIONARY_WATER) + if (IsBlockWater(GetCell(CurrentCell->m_Location + Vector3i(0, -1, 0))->m_BlockType)) { CurrentCell->m_Location.y -= 30; } diff --git a/src/Mobs/Skeleton.cpp b/src/Mobs/Skeleton.cpp index 5032ec5b0..adad543d2 100644 --- a/src/Mobs/Skeleton.cpp +++ b/src/Mobs/Skeleton.cpp @@ -68,7 +68,6 @@ bool cSkeleton::Attack(std::chrono::milliseconds a_Dt) Arrow = nullptr; return false; } - m_World->BroadcastSpawnEntity(*Arrow); ResetAttackCooldown(); return true; |