why not just...

This commit is contained in:
Leijurv 2018-11-05 20:02:27 -08:00
parent 604ef2bb64
commit aac0d623fa
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A

View File

@ -83,10 +83,9 @@ public class MixinMinecraft {
)
)
private void runTick(CallbackInfo ci) {
Minecraft mc = (Minecraft) (Object) this;
Baritone.INSTANCE.getGameEventHandler().onTick(new TickEvent(
EventState.PRE,
(mc.player != null && mc.world != null)
(player != null && world != null)
? TickEvent.Type.IN
: TickEvent.Type.OUT
));