fix: assert player != null
This commit is contained in:
parent
8baa0f2a64
commit
d68a0727fb
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ public class Immovable extends AbstractModule {
|
||||||
event.setCanceled(true);
|
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;
|
SEntityVelocityPacket packet = (SEntityVelocityPacket) event.packet;
|
||||||
if (packet.getId() == MC.player.getId()) {
|
if (packet.getId() == MC.player.getId()) {
|
||||||
event.setCanceled(true);
|
event.setCanceled(true);
|
||||||
|
|
Loading…
Reference in a new issue