From afc4a3c7f18d42b41cbfde84ab6a2e4dd7c03045 Mon Sep 17 00:00:00 2001 From: Lee Siu San <15855635+leolee3914@users.noreply.github.com> Date: Sun, 9 Mar 2025 10:09:53 +0800 Subject: [PATCH] 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. --- src/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 7f0f6028b..e24c6067c 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -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,