mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
World: remove dead code leftover from 34f01a3ce3c02f41cfebfc81d34b755cfed62811
fixes #4486
This commit is contained in:
parent
c6b2c63a9b
commit
f5266ec816
@ -2289,10 +2289,6 @@ class World implements ChunkManager{
|
||||
}
|
||||
}
|
||||
$pos = $entity->getPosition()->asVector3();
|
||||
$chunk = $this->getOrLoadChunkAtPosition($pos);
|
||||
if($chunk === null){
|
||||
throw new \InvalidArgumentException("Cannot add an Entity in an ungenerated chunk");
|
||||
}
|
||||
$this->entitiesByChunk[World::chunkHash($pos->getFloorX() >> Chunk::COORD_BIT_SIZE, $pos->getFloorZ() >> Chunk::COORD_BIT_SIZE)][$entity->getId()] = $entity;
|
||||
$this->entityLastKnownPositions[$entity->getId()] = $pos;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user