mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-20 18:31:23 +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:
parent
2f306c3a38
commit
8779259734
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user