This commit is contained in:
Leijurv 2018-10-11 11:11:19 -07:00
parent a1c0f4dbb4
commit 0db18a7caf
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
4 changed files with 6 additions and 6 deletions

View File

@ -20,7 +20,7 @@ import java.util.jar.JarOutputStream
*/
group 'baritone'
version '0.0.7'
version '0.0.8'
buildscript {
repositories {

View File

@ -1,4 +1,4 @@
-injars baritone-0.0.7.jar
-injars baritone-0.0.8.jar
-outjars Obfuscated

View File

@ -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));
}
}

View File

@ -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));
}
}