Commit Graph

9 Commits

Author SHA1 Message Date
Teriuihi 5cbaf3f24c Enable scoreboard updates and comment out hover text
Uncommented the code in `updateScoreboard` and `addViewer` methods in `Leaderboard.java` to ensure scoreboard updates are sent to players. Commented out the components in `HoverText.java` related to setting text display names.
2024-10-20 21:43:46 +02:00
Teriuihi 316bbad36e Try removing packet writes in HoverText.java
Eliminated unnecessary speed, pitch, and yaw packet writes in HoverText.java for entity spawning to streamline code. Also commented out the updateScoreboard calls in Leaderboard.java to prevent redundant packet sending to players.
2024-10-20 21:08:23 +02:00
Teriuihi b9b5e883f1 Disable Yaw setting in HoverText spawn packet
Comment out the line that sets the Yaw value to 0 in the spawn packet for `HoverText`. This change prevents unnecessary modifications to the entity's yaw, streamlining the packet data.
2024-10-20 20:43:52 +02:00
Teriuihi 3a0e591694 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.
2024-10-20 20:40:35 +02:00
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