diff options
-rw-r--r-- | src/main/java/ftbsc/bscv/modules/self/Immovable.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/ftbsc/bscv/modules/self/Immovable.java b/src/main/java/ftbsc/bscv/modules/self/Immovable.java index b01a14e..b27b117 100644 --- a/src/main/java/ftbsc/bscv/modules/self/Immovable.java +++ b/src/main/java/ftbsc/bscv/modules/self/Immovable.java @@ -59,7 +59,7 @@ public class Immovable extends AbstractModule { event.setCanceled(true); } - if (event.packet instanceof SEntityVelocityPacket && this.server.get()) { + if (MC.player != null && event.packet instanceof SEntityVelocityPacket && this.server.get()) { SEntityVelocityPacket packet = (SEntityVelocityPacket) event.packet; if (packet.getId() == MC.player.getId()) { event.setCanceled(true); |