fix freecam on non2b

This commit is contained in:
Bella 2019-12-06 11:02:12 -05:00
parent 51534b2a31
commit 6c2f47a2bc
1 changed files with 4 additions and 4 deletions

View File

@ -82,14 +82,14 @@ public class Freecam extends Module {
@Override
public void onUpdate() {
if (disable2b.getValue()) {
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("[FakeGamemode] Using this on 2b2t queue might get you kicked, please disable the AntiKick option if you're sure");
this.disable();
}
return;
}
return;
}
mc.player.capabilities.isFlying = true;
mc.player.capabilities.setFlySpeed(speed.getValue() / 100f);