From ae39d68ca6e92c7ddd91caa94528f65ca5db9533 Mon Sep 17 00:00:00 2001 From: Bella Date: Sat, 14 Dec 2019 20:36:41 -0500 Subject: [PATCH] close #273 --- .../kami/module/modules/bewwawho/misc/FakeGamemode.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/FakeGamemode.java b/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/FakeGamemode.java index 098e09a6..4f47ed5e 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/FakeGamemode.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/bewwawho/misc/FakeGamemode.java @@ -44,8 +44,8 @@ public class FakeGamemode extends Module { } public void onEnable() { - if (mc.player == null) return; - gameType = mc.playerController.getCurrentGameType(); + if (mc.player == null) { this.disable(); return; } + else gameType = mc.playerController.getCurrentGameType(); } public void onDisable() {