forked from RepoMirrors/kami-blue
Update AutoQMain.java (#228)
This commit is contained in:
parent
8a65e5d05a
commit
407b051abf
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue