From 44800c43ca6d17629f4a7c1632a31298e80689ff Mon Sep 17 00:00:00 2001 From: Bella Date: Sat, 4 Apr 2020 10:29:06 -0400 Subject: [PATCH] fix fakegamemode and close #504 --- .../kami/module/modules/misc/FakeGamemode.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/main/java/me/zeroeightsix/kami/module/modules/misc/FakeGamemode.java b/src/main/java/me/zeroeightsix/kami/module/modules/misc/FakeGamemode.java index 4590486f..633fd31e 100644 --- a/src/main/java/me/zeroeightsix/kami/module/modules/misc/FakeGamemode.java +++ b/src/main/java/me/zeroeightsix/kami/module/modules/misc/FakeGamemode.java @@ -14,21 +14,12 @@ import net.minecraft.world.GameType; @Module.Info(name = "FakeGamemode", description = "Fakes your current gamemode client side", category = Module.Category.MISC) public class FakeGamemode extends Module { private Setting gamemode = register(Settings.e("Mode", GamemodeChanged.CREATIVE)); - private Setting disable2b = register(Settings.b("AntiKick 2b2t", true)); private GameType gameType; @Override public void onUpdate() { if (mc.player == null) return; - if (Minecraft.getMinecraft().getCurrentServerData() == null || (Minecraft.getMinecraft().getCurrentServerData() != null && Minecraft.getMinecraft().getCurrentServerData().serverIP.equalsIgnoreCase("2b2t.org"))) { - if (mc.player.dimension == 1) { - if (disable2b.getValue()) { - Command.sendWarningMessage(getChatName() + " Using this on 2b2t queue might get you kicked, please disable the AntiKick option if you're sure"); - disable(); - } - } - return; - } else if (gamemode.getValue().equals(GamemodeChanged.CREATIVE)) { + if (gamemode.getValue().equals(GamemodeChanged.CREATIVE)) { mc.playerController.setGameType(gameType); mc.playerController.setGameType(GameType.CREATIVE); } else if (gamemode.getValue().equals(GamemodeChanged.SURVIVAL)) {