2828import org .spongepowered .asm .mixin .injection .Inject ;
2929import org .spongepowered .asm .mixin .injection .callback .CallbackInfo ;
3030
31- @ Mixin (LookBehavior .class )
32- public class MixinLookBehavior {
31+ @ Mixin (value = LookBehavior .class , remap = false )
32+ public class LookBehaviourMixin {
3333 // Redirect baritone's rotations into our rotation engine
34- @ Inject (method = "updateTarget" , at = @ At ("HEAD" ), remap = false , cancellable = true )
34+ @ Inject (method = "updateTarget" , at = @ At ("HEAD" ), cancellable = true )
3535 void onTargetUpdate (Rotation rotation , boolean blockInteract , CallbackInfo ci ) {
3636 LookBehavior instance = ((LookBehavior ) (Object ) this );
3737 if (instance .baritone != BaritoneManager .getPrimary ()) return ;
@@ -40,15 +40,15 @@ void onTargetUpdate(Rotation rotation, boolean blockInteract, CallbackInfo ci) {
4040 ci .cancel ();
4141 }
4242
43- @ Inject (method = "onPlayerUpdate" , at = @ At ("HEAD" ), remap = false , cancellable = true )
43+ @ Inject (method = "onPlayerUpdate" , at = @ At ("HEAD" ), cancellable = true )
4444 void onUpdate (PlayerUpdateEvent event , CallbackInfo ci ) {
4545 LookBehavior instance = ((LookBehavior ) (Object ) this );
4646 if (instance .baritone != BaritoneManager .getPrimary ()) return ;
4747
4848 ci .cancel ();
4949 }
5050
51- @ Inject (method = "onPlayerRotationMove" , at = @ At ("HEAD" ), remap = false , cancellable = true )
51+ @ Inject (method = "onPlayerRotationMove" , at = @ At ("HEAD" ), cancellable = true )
5252 void onMovementUpdate (RotationMoveEvent event , CallbackInfo ci ) {
5353 LookBehavior instance = ((LookBehavior ) (Object ) this );
5454 if (instance .baritone != BaritoneManager .getPrimary ()) return ;
0 commit comments