mixin is a fuck
This commit is contained in:
parent
821c045980
commit
cb4c5a3430
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue