move runtime entity ID counter from EntityFactory back to Entity

EntityFactory is specialized for the purpose of deserializing data from worlds, and runtime ID assignment isn't related.
This commit is contained in:
Dylan K. Taylor
2020-06-19 21:55:49 +01:00
parent 6d3750994b
commit 012acdd4cb
3 changed files with 13 additions and 13 deletions

View File

@ -23,7 +23,7 @@ declare(strict_types=1);
namespace pocketmine\world\particle;
use pocketmine\entity\EntityFactory;
use pocketmine\entity\Entity;
use pocketmine\entity\Skin;
use pocketmine\math\Vector3;
use pocketmine\network\mcpe\convert\SkinAdapterSingleton;
@ -84,7 +84,7 @@ class FloatingTextParticle implements Particle{
$p = [];
if($this->entityId === null){
$this->entityId = EntityFactory::nextRuntimeId();
$this->entityId = Entity::nextRuntimeId();
}else{
$p[] = RemoveActorPacket::create($this->entityId);
}