File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/main/java/nekiplay/meteorplus/features/modules/combat/velocity/modes Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public void onReceivePacket(PacketEvent.Receive event) {
36
36
if (packet instanceof EntityDamageS2CPacket && ((EntityDamageS2CPacket ) packet ).entityId () == mc .player .getId ()) {
37
37
canCancel = true ;
38
38
}
39
- if (((packet instanceof EntityVelocityUpdateS2CPacket && ((EntityVelocityUpdateS2CPacket ) packet ).getId () == mc .player .getId ()) || packet instanceof ExplosionS2CPacket ) && canCancel ) {
39
+ if (((packet instanceof EntityVelocityUpdateS2CPacket && ((EntityVelocityUpdateS2CPacket ) packet ).getEntityId () == mc .player .getId ()) || packet instanceof ExplosionS2CPacket ) && canCancel ) {
40
40
skip = 6 ;
41
41
event .cancel ();
42
42
}
You can’t perform that action at this time.
0 commit comments