fix broken code from #214

This commit is contained in:
Bella 2019-12-03 21:27:03 -05:00
parent b9bc98b4e5
commit 69d7047837
1 changed files with 3 additions and 4 deletions

View File

@ -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 {
}
}
}
}