mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
entity: use 0 for no-target a la vanilla 1.13, fix player arms bug
I have no idea why this was changed, -1 is still used for every other property, but packet traces confirm this is correct.
This commit is contained in:
parent
80917692c1
commit
6935030e0c
@ -1785,7 +1785,7 @@ abstract class Entity{
|
||||
$this->networkProperties->setFloat(EntityMetadataProperties::SCALE, $this->scale);
|
||||
$this->networkProperties->setLong(EntityMetadataProperties::LEAD_HOLDER_EID, -1);
|
||||
$this->networkProperties->setLong(EntityMetadataProperties::OWNER_EID, $this->ownerId ?? -1);
|
||||
$this->networkProperties->setLong(EntityMetadataProperties::TARGET_EID, $this->targetId ?? -1);
|
||||
$this->networkProperties->setLong(EntityMetadataProperties::TARGET_EID, $this->targetId ?? 0);
|
||||
$this->networkProperties->setString(EntityMetadataProperties::NAMETAG, $this->nameTag);
|
||||
$this->networkProperties->setString(EntityMetadataProperties::SCORE_TAG, $this->scoreTag);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user