Set speed components to zero in HoverText spawn packet.

Added X, Y, and Z speed settings to zero in the HoverText spawn packet to prevent unexpected entity movement. This ensures the entity remains stationary as intended.
This commit is contained in:
Teriuihi 2024-10-20 20:40:35 +02:00
parent d3d0aa182d
commit 3a0e591694

View File

@ -40,6 +40,9 @@ public class HoverText {
.write(0, location.getX())
.write(1, location.getY())
.write(2, location.getZ());
spawnPacket.getIntegers().write(1, 0); // Speed X
spawnPacket.getIntegers().write(2, 0); // Speed Y
spawnPacket.getIntegers().write(3, 0); // Speed Z
spawnPacket.getIntegers().write(4, 0); // Pitch
spawnPacket.getIntegers().write(5, 0); // Yaw
spawnPacket.getEntityTypeModifier().write(0, EntityType.ARMOR_STAND);