Fix little mistake

This commit is contained in:
BitHeaven 2024-09-29 12:30:48 +05:00
parent a7d14dc690
commit 07445ebeff
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ public class DonPayInteg implements ModInitializer {
public static final String MOD_ID = "donpayinteg";
public static final String NAME = "DonatePayIntegration";
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
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()) {
world.getCommandManager().executeWithPrefix(world.getCommandSource(), commands.getFirst());
commands.removeFirst();