mixin is a fuck

This commit is contained in:
Daniella / Tove 2024-05-26 03:10:15 +02:00
parent 821c045980
commit cb4c5a3430

View file

@ -58,10 +58,9 @@ public class MixinEntityPlayerSP extends AbstractClientPlayer {
@Inject(method = "move", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/entity/AbstractClientPlayer;move(Lnet/minecraft/entity/MoverType;DDD)V"), cancellable = true)
public void move(MoverType p_70091_1_, double p_70091_2_, double p_70091_4_, double p_70091_6_, CallbackInfo ci) {
MoveEvent event = new MoveEvent(p_70091_1_, p_70091_2_, p_70091_4_, p_70091_6_);
if(!BaseBand.eventManager.publish(event).isCancelled())
if(BaseBand.eventManager.publish(event).isCancelled())
super.move(event.type, event.x, event.y, event.z);
else
ci.cancel();
ci.cancel();
}
}