From 6e2f33340499eb95be406ab690435ed81ade6223 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Sat, 19 Apr 2025 16:44:03 -0500 Subject: [PATCH] chore: add more debugging for balloon updating --- .../hmccosmetics/cosmetic/types/CosmeticBalloonType.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticBalloonType.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticBalloonType.java index 746e3f18..dbba2294 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticBalloonType.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticBalloonType.java @@ -4,6 +4,7 @@ import com.hibiscusmc.hmccosmetics.config.Settings; import com.hibiscusmc.hmccosmetics.cosmetic.Cosmetic; import com.hibiscusmc.hmccosmetics.user.CosmeticUser; import com.hibiscusmc.hmccosmetics.user.manager.UserBalloonManager; +import com.hibiscusmc.hmccosmetics.util.MessagesUtil; import com.hibiscusmc.hmccosmetics.util.packets.HMCCPacketManager; import lombok.Getter; import me.lojosho.shaded.configurate.ConfigurationNode; @@ -82,6 +83,11 @@ public class CosmeticBalloonType extends Cosmetic { userBalloonManager.setLocation(newLocation); userBalloonManager.setVelocity(velocity.multiply(1.1)); + MessagesUtil.sendDebugMessages("Balloon Cosmetic Update for " + user.getEntity().getName()); + MessagesUtil.sendDebugMessages("Ballon previous location is " + currentLocation); + MessagesUtil.sendDebugMessages("Balloon location set to " + newLocation); + MessagesUtil.sendDebugMessages("Balloon velocity set to " + velocity); + HMCCPacketManager.sendTeleportPacket(userBalloonManager.getPufferfishBalloonId(), newLocation, false, viewer); HMCCPacketManager.sendLeashPacket(userBalloonManager.getPufferfishBalloonId(), entity.getEntityId(), viewer); if (user.isHidden()) {