Fix little mistake
This commit is contained in:
parent
a7d14dc690
commit
07445ebeff
|
@ -16,7 +16,7 @@ public class DonPayInteg implements ModInitializer {
|
||||||
public static final String MOD_ID = "donpayinteg";
|
public static final String MOD_ID = "donpayinteg";
|
||||||
public static final String NAME = "DonatePayIntegration";
|
public static final String NAME = "DonatePayIntegration";
|
||||||
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
|
public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);
|
||||||
public static List<String> commands = new ArrayList<String>();
|
public static List<String> commands = new ArrayList<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
|
@ -38,7 +38,7 @@ public class DonPayInteg implements ModInitializer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(i.getAndIncrement() % (20 * 2) == 0) {
|
if(j.getAndIncrement() % (20 * 2) == 0) {
|
||||||
if (!commands.isEmpty()) {
|
if (!commands.isEmpty()) {
|
||||||
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.getFirst());
|
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.getFirst());
|
||||||
commands.removeFirst();
|
commands.removeFirst();
|
||||||
|
|
Loading…
Reference in New Issue