mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-17 04:06:54 +00:00
Stop spawning entities to players twice
This will be done when the chunk is sent to the player anyway.
This commit is contained in:
@@ -711,9 +711,7 @@ class Chunk{
|
|||||||
|
|
||||||
try{
|
try{
|
||||||
$entity = Entity::createEntity($nbt["id"], $level, $nbt);
|
$entity = Entity::createEntity($nbt["id"], $level, $nbt);
|
||||||
if($entity instanceof Entity){
|
if(!($entity instanceof Entity)){
|
||||||
$entity->spawnToAll();
|
|
||||||
}else{
|
|
||||||
$changed = true;
|
$changed = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user