fix npe in fakegamemode

This commit is contained in:
Bella 2019-12-03 21:11:31 -05:00
parent f86c5d9910
commit 9f61e1ff3d
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ public class FakeGamemode extends Module {
}
}
public void onEnable() {
if (mc.player == null) { this.disable();return; }
gameType = mc.playerController.getCurrentGameType();
}