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:
Dylan K. Taylor 2019-12-12 00:20:09 +00:00
parent 80917692c1
commit 6935030e0c

View File

@ -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);