Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
dd0d929c12
Commit
73f5d9bdf5
@ -134,19 +134,21 @@ public class Loader implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!iterator.hasNext()) {
|
while (countdown <= 0) {
|
||||||
countdown = getTicksBetweenShots();
|
if (!iterator.hasNext()) {
|
||||||
iterator = actions.listIterator();
|
countdown = getTicksBetweenShots();
|
||||||
return;
|
iterator = actions.listIterator();
|
||||||
}
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
current = iterator.next();
|
current = iterator.next();
|
||||||
|
|
||||||
if (current.execute()) {
|
if (current.execute()) {
|
||||||
countdown = current.delay(this);
|
countdown = current.delay(this);
|
||||||
} else {
|
} else {
|
||||||
countdown = 1;
|
countdown = 1;
|
||||||
iterator.previous();
|
iterator.previous();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ public class LoaderCommand extends SWCommand {
|
|||||||
|
|
||||||
@Register(value = "speed", description = "LOADER_HELP_SPEED")
|
@Register(value = "speed", description = "LOADER_HELP_SPEED")
|
||||||
public void speedLoader(@Guard Player p, int delay) {
|
public void speedLoader(@Guard Player p, int delay) {
|
||||||
if (delay < 1) {
|
if (delay < 0) {
|
||||||
BauSystem.MESSAGE.send("LOADER_SMALL_TIME", p);
|
BauSystem.MESSAGE.send("LOADER_SMALL_TIME", p);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren