forked from RepoMirrors/kami-blue
fix broken code from #214
This commit is contained in:
parent
b9bc98b4e5
commit
69d7047837
|
@ -17,7 +17,7 @@ import net.minecraft.item.ItemExpBottle;
|
|||
public class Fastuse extends Module {
|
||||
|
||||
|
||||
private Setting<Integer> delay = register(Settings.i("Delay", 0);
|
||||
private Setting<Integer> delay = register(Settings.i("Delay", 0));
|
||||
private Setting<Mode> mode = register(Settings.e("Mode", Mode.BOTH));
|
||||
private static long time = 0;
|
||||
private enum Mode {
|
||||
|
@ -29,8 +29,8 @@ public class Fastuse extends Module {
|
|||
if (!(delay.getValue() <= 0)) {
|
||||
if (time <= 0) time = delay.getValue();
|
||||
else if (time > 0) {
|
||||
time--;
|
||||
return;
|
||||
time--:
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,4 +60,3 @@ public class Fastuse extends Module {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue