forked from RepoMirrors/kami-blue
fix freecam on non2b
This commit is contained in:
parent
51534b2a31
commit
6c2f47a2bc
|
@ -82,14 +82,14 @@ public class Freecam extends Module {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onUpdate() {
|
public void onUpdate() {
|
||||||
if (disable2b.getValue()) {
|
|
||||||
if (Minecraft.getMinecraft().getCurrentServerData() == null || (Minecraft.getMinecraft().getCurrentServerData() != null && Minecraft.getMinecraft().getCurrentServerData().serverIP.equalsIgnoreCase("2b2t.org"))) {
|
if (Minecraft.getMinecraft().getCurrentServerData() == null || (Minecraft.getMinecraft().getCurrentServerData() != null && Minecraft.getMinecraft().getCurrentServerData().serverIP.equalsIgnoreCase("2b2t.org"))) {
|
||||||
if (mc.player.dimension == 1) {
|
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");
|
Command.sendWarningMessage("[FakeGamemode] Using this on 2b2t queue might get you kicked, please disable the AntiKick option if you're sure");
|
||||||
this.disable();
|
this.disable();
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
mc.player.capabilities.isFlying = true;
|
mc.player.capabilities.isFlying = true;
|
||||||
mc.player.capabilities.setFlySpeed(speed.getValue() / 100f);
|
mc.player.capabilities.setFlySpeed(speed.getValue() / 100f);
|
||||||
|
|
Loading…
Reference in New Issue