fix end warning in autoqmain

This commit is contained in:
Bella 2019-12-04 14:11:18 -05:00
parent e5f118444d
commit 30e42c1bff
1 changed files with 7 additions and 1 deletions

View File

@ -25,6 +25,7 @@ public class AutoQMain extends Module {
@Override
public void onUpdate() {
if (mc.player == null) return;
if (oldDelay == 0) oldDelay = delay.getValue();
else if (oldDelay != delay.getValue()) {
delayTime = delay.getValue();
@ -47,8 +48,9 @@ public class AutoQMain extends Module {
if (!Minecraft.getMinecraft().getCurrentServerData().serverIP.equalsIgnoreCase("2b2t.org") && debugWarn.getValue()) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are not connected to 2b2t.org");
}
if (mc.player.dimension == 1 && endDi.getValue()) {
if (mc.player.dimension != 1 && endDi.getValue()) {
Command.sendWarningMessage("[AutoQMain] &l&6Warning: &r&6You are not in the end. Not running &b/queue main&7.");
// Command.sendWarningMessage("[AutoQMain] " + mc.player.dimension);
return;
}
if (debug.getValue()) {
@ -56,4 +58,8 @@ public class AutoQMain extends Module {
}
Minecraft.getMinecraft().playerController.connection.sendPacket(new CPacketChatMessage("/queue main"));
}
public void onDisable() {
delayTime = 0;
}
}