From 539c09801c84a004890524eb5d61668a011a4292 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Fri, 27 Jun 2025 08:53:58 -0500 Subject: [PATCH] chore: remove cooldown on teleport packet --- .../com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java index 09f17881..ab0c765e 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java @@ -80,7 +80,7 @@ public class UserEntity { if (this.getLocation() != null && this.getLocation().getWorld() == location.getWorld()) { // Was thinking about using schedulers to just send the packet later... but that would be a lot of tasks and // would probably cause more lag. Furthermore, the server "ticks" the cosmetics every second by defualt. So it's fine like this. - if (System.currentTimeMillis() - getLastPositionUpdate() <= Settings.getPacketEntityTeleportCooldown()) return; + //if (System.currentTimeMillis() - getLastPositionUpdate() <= Settings.getPacketEntityTeleportCooldown()) return; } this.location = location; for (Integer entity : ids) {