diff --git a/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java b/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java index 74261d6..ea19273 100644 --- a/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java +++ b/src/main/java/org/samo_lego/simpleauth/storage/PlayerCache.java @@ -38,7 +38,7 @@ public class PlayerCache { this.lastIp = player.getIp(); // Setting last coordinates - this.lastDimId = player.dimension.getRawId(); + this.lastDim = player.getEntityWorld().getDimension(); this.lastX = player.getX(); this.lastY = player.getY(); this.lastZ = player.getZ();