Update AutoQMain.java (#228)

This commit is contained in:
d1gress 2019-12-05 00:25:36 +08:00 committed by Bella Who
parent 8a65e5d05a
commit 407b051abf
1 changed files with 6 additions and 3 deletions

View File

@ -12,7 +12,7 @@ import net.minecraft.network.play.client.CPacketChatMessage;
* Updated by @S-B99 on 29/11/19
* Updated by d1gress/Qther on 5/12/2019
*/
@Module.Info(name = "AutoQMain", description = "Automatically does \"/queue main\" every X minutes.", category = Module.Category.MISC)
@Module.Info(name = "AutoQMain", description = "Automatically does \"/queue main\" every 7.1 minutes.", category = Module.Category.MISC)
public class AutoQMain extends Module {
private Setting<Boolean> debug = register(Settings.b("Debug", true));
@ -25,8 +25,11 @@ public class AutoQMain extends Module {
@Override
public void onUpdate() {
if (oldDelay == 0) oldDelay = delay.getValue();
else if (oldDelay != delay.getValue()) delayTime = delay.getValue();
else if (oldDelay != delay.getValue()) {
delayTime = delay.getValue();
oldDelay = delay.getValue();
}
if (delayTime <= 0) {
delayTime = (int) (delay.getValue() * 3000);
}