Fixed entity position offset not being included in AddActorPacket (#6643)

this was causing TNT and falling blocks to briefly appear half a block lower than their true position, because their positions are measured from the center and not the base.
This commit is contained in:
Lee Siu San 2025-03-09 10:09:53 +08:00 committed by GitHub
parent 7af5eb3da2
commit afc4a3c7f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1495,7 +1495,7 @@ abstract class Entity{
$this->getId(), //TODO: actor unique ID
$this->getId(),
static::getNetworkTypeId(),
$this->location->asVector3(),
$this->getOffsetPosition($this->location->asVector3()),
$this->getMotion(),
$this->location->pitch,
$this->location->yaw,