diff --git a/src/main/java/org/ultramine/mods/privreg/EventHandlerClient.java b/src/main/java/org/ultramine/mods/privreg/EventHandlerClient.java index 306351e..7ee6445 100644 --- a/src/main/java/org/ultramine/mods/privreg/EventHandlerClient.java +++ b/src/main/java/org/ultramine/mods/privreg/EventHandlerClient.java @@ -31,7 +31,7 @@ if(e.phase == TickEvent.Phase.END) { EntityPlayer player = Minecraft.getMinecraft().thePlayer; - if(player != null) + if(player != null && (player.posX != 0 || player.posY != 0 || player.posZ != 0)) { BlockPos current = new BlockPos(player.posX, player.posY, player.posZ); @@ -75,6 +75,8 @@ } last = current; + } else { + last = null; } } }