mirror of https://github.com/cabaletta/baritone
v0.0.8
This commit is contained in:
parent
a1c0f4dbb4
commit
0db18a7caf
|
@ -20,7 +20,7 @@ import java.util.jar.JarOutputStream
|
|||
*/
|
||||
|
||||
group 'baritone'
|
||||
version '0.0.7'
|
||||
version '0.0.8'
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
-injars baritone-0.0.7.jar
|
||||
-injars baritone-0.0.8.jar
|
||||
-outjars Obfuscated
|
||||
|
||||
|
||||
|
|
|
@ -40,7 +40,7 @@ public class MixinEntity {
|
|||
)
|
||||
private void preMoveRelative(float strafe, float up, float forward, float friction, CallbackInfo ci) {
|
||||
Entity _this = (Entity) (Object) this;
|
||||
if (_this instanceof EntityPlayerSP)
|
||||
if (EntityPlayerSP.class.isInstance(_this))
|
||||
Baritone.INSTANCE.getGameEventHandler().onPlayerRotationMove(new RotationMoveEvent((EntityPlayerSP) _this, EventState.PRE, RotationMoveEvent.Type.MOTION_UPDATE));
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ public class MixinEntity {
|
|||
)
|
||||
private void postMoveRelative(float strafe, float up, float forward, float friction, CallbackInfo ci) {
|
||||
Entity _this = (Entity) (Object) this;
|
||||
if (_this instanceof EntityPlayerSP)
|
||||
if (EntityPlayerSP.class.isInstance(_this))
|
||||
Baritone.INSTANCE.getGameEventHandler().onPlayerRotationMove(new RotationMoveEvent((EntityPlayerSP) _this, EventState.POST, RotationMoveEvent.Type.MOTION_UPDATE));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ public class MixinEntityLivingBase {
|
|||
)
|
||||
private void preJump(CallbackInfo ci) {
|
||||
EntityLivingBase _this = (EntityLivingBase) (Object) this;
|
||||
if (_this instanceof EntityPlayerSP)
|
||||
if (EntityPlayerSP.class.isInstance(_this))
|
||||
Baritone.INSTANCE.getGameEventHandler().onPlayerRotationMove(new RotationMoveEvent((EntityPlayerSP) _this, EventState.PRE, RotationMoveEvent.Type.JUMP));
|
||||
}
|
||||
|
||||
|
@ -50,7 +50,7 @@ public class MixinEntityLivingBase {
|
|||
)
|
||||
private void postJump(CallbackInfo ci) {
|
||||
EntityLivingBase _this = (EntityLivingBase) (Object) this;
|
||||
if (_this instanceof EntityPlayerSP)
|
||||
if (EntityPlayerSP.class.isInstance(_this))
|
||||
Baritone.INSTANCE.getGameEventHandler().onPlayerRotationMove(new RotationMoveEvent((EntityPlayerSP) _this, EventState.POST, RotationMoveEvent.Type.JUMP));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue