summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-01-16 11:28:13 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-01-16 15:40:47 +0100
commitac2c79f79757ca2b7fc5df9dac031fb8b6b3317b (patch)
treed97e0847b2d822fbf5572d18b5a8112cd59a49e9 /src/World.cpp
parentMerge pull request #2875 from LogicParrot/fallDamage (diff)
downloadcuberite-ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b.tar
cuberite-ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b.tar.gz
cuberite-ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b.tar.bz2
cuberite-ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b.tar.lz
cuberite-ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b.tar.xz
cuberite-ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b.tar.zst
cuberite-ac2c79f79757ca2b7fc5df9dac031fb8b6b3317b.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 9a2e23ac0..6bb5b5940 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -3504,15 +3504,6 @@ UInt32 cWorld::SpawnMobFinalize(cMonster * a_Monster)
return cEntity::INVALID_ID;
}
- cPlayer * a_Closest_Player = FindClosestPlayer(a_Monster->GetPosition(), 24);
- if (a_Closest_Player != nullptr) // Too close to a player, bail out.
- {
- delete a_Monster;
- a_Monster = nullptr;
- return cEntity::INVALID_ID;
- }
-
-
// Initialize the monster into the current world.
if (!a_Monster->Initialize(*this))
{