diff --git a/src/main/java/net/minestom/server/entity/Player.java b/src/main/java/net/minestom/server/entity/Player.java index ccd89ab08..fa36d23e0 100644 --- a/src/main/java/net/minestom/server/entity/Player.java +++ b/src/main/java/net/minestom/server/entity/Player.java @@ -1952,7 +1952,7 @@ public class Player extends LivingEntity implements CommandSender, Localizable, } public int getNextTeleportId() { - return teleportId.getAndIncrement(); + return teleportId.incrementAndGet(); } public int getLastSentTeleportId() {