9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-19 15:09:19 +00:00

chore: remove cooldown on teleport packet

This commit is contained in:
LoJoSho
2025-06-27 08:53:58 -05:00
parent bed5cd7bbb
commit 539c09801c

View File

@@ -80,7 +80,7 @@ public class UserEntity {
if (this.getLocation() != null && this.getLocation().getWorld() == location.getWorld()) { 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 // 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. // 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; this.location = location;
for (Integer entity : ids) { for (Integer entity : ids) {