diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-16 16:02:06 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-16 16:02:06 +0100 |
commit | bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621 (patch) | |
tree | 5615862963eec3e289e4f26dec41d98d0d5d9e84 /src/World.cpp | |
parent | Merge pull request #2878 from LogicParrot/wolf2 (diff) | |
parent | Fixed non-natural spawning near player (egg, breeding, etc.) (diff) | |
download | cuberite-bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621.tar cuberite-bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621.tar.gz cuberite-bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621.tar.bz2 cuberite-bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621.tar.lz cuberite-bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621.tar.xz cuberite-bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621.tar.zst cuberite-bc4a6ec3eacc1dd7c497ab3babd61f03ebb86621.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 9 |
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)) { |