fix(Velocity): add local player check

This commit is contained in:
cattyngmd
2026-10-14 00:21:35 +03:00
parent 5e8a05de00
commit 3cd260f31b
@@ -13,7 +13,12 @@ public class VelocityModule extends Module {
@Subscribe
private void onPacketReceive(PacketEvent.Receive event) {
if (event.getPacket() instanceof ClientboundSetEntityMotionPacket || event.getPacket() instanceof ClientboundExplodePacket)
if (nullCheck())
return;
if (event.getPacket() instanceof ClientboundSetEntityMotionPacket packet && packet.getId() == mc.player.getId()
|| event.getPacket() instanceof ClientboundExplodePacket) {
event.cancel();
}
}
}