Merge branch 'master' of github.com:cabaletta/baritone
This commit is contained in:
commit
8eaa64148b
@ -1,7 +1,6 @@
|
|||||||
package baritone.bot.behavior.impl;
|
package baritone.bot.behavior.impl;
|
||||||
|
|
||||||
import baritone.bot.behavior.Behavior;
|
import baritone.bot.behavior.Behavior;
|
||||||
import baritone.bot.event.events.TickEvent;
|
|
||||||
import baritone.bot.utils.Rotation;
|
import baritone.bot.utils.Rotation;
|
||||||
|
|
||||||
public class LookBehavior extends Behavior {
|
public class LookBehavior extends Behavior {
|
||||||
@ -22,11 +21,6 @@ public class LookBehavior extends Behavior {
|
|||||||
this.target = target;
|
this.target = target;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public void onTick(TickEvent event) {
|
|
||||||
this.onPlayerUpdate();
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPlayerUpdate() {
|
public void onPlayerUpdate() {
|
||||||
if (target != null) {
|
if (target != null) {
|
||||||
|
@ -30,8 +30,10 @@ public class MixinEntityPlayerSP {
|
|||||||
@Inject(
|
@Inject(
|
||||||
method = "onUpdate",
|
method = "onUpdate",
|
||||||
at = @At(
|
at = @At(
|
||||||
value = "INVOKE_ASSIGN",
|
value = "INVOKE",
|
||||||
target = "Lnet/minecraft/client/entity/AbstractClientPlayer;onUpdate()V"
|
target = "net/minecraft/client/entity/EntityPlayerSP.isRiding()Z",
|
||||||
|
shift = At.Shift.BY,
|
||||||
|
by = -3
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
private void onUpdate(CallbackInfo ci) {
|
private void onUpdate(CallbackInfo ci) {
|
||||||
|
Loading…
Reference in New Issue
Block a user