Commit Graph

5 Commits

Author SHA1 Message Date
Teriuihi d3d0aa182d Refactor armor stand spawning logic
Add pitch and yaw values to the spawn packet and use EntityType.ARMOR_STAND for setting the entity type. This change ensures the armor stand is created with the correct orientation and type.
2024-10-20 20:29:38 +02:00
Teriuihi d4eccf478f Add check for existing viewers before adding them
Updated the addViewer method to verify if a player is already in the viewers list before adding. Adjusted the order of operations to ensure the scoreboard is updated correctly before adding the player to the viewers.
2024-10-20 19:42:31 +02:00
Teriuihi 6c6a87e6c2 Fix entity destruction packet write method in HoverText.java
Updated the destroyPacket to utilize getIntLists(). This change ensures proper handling of entity IDs in line with the necessary method for destroying entities.
2024-10-20 19:34:48 +02:00
Teriuihi 3411a38946 Fix entity destruction packet write method in HoverText.java
Changed the method from getIntegerArrays() to getIntegers() to ensure the correct destruction packet is sent. This fixes an issue where entities were not being correctly destroyed, thereby preventing potential memory leaks and display errors.
2024-10-20 19:22:13 +02:00
Teriuihi 023e9386ce Initial commit 2024-10-20 19:05:26 +02:00