Format code

This commit is contained in:
2026-05-17 10:12:22 +02:00
parent 5125453406
commit eceb58b28c
25 changed files with 113 additions and 56 deletions
@@ -60,9 +60,11 @@ public class FightWorld {
}
private static void forEachChunk(ObjIntConsumer<Integer> executor) {
for (int x = getMinChunkX(); x <= getMaxChunkX(); x++)
for (int z = getMinChunkZ(); z <= getMaxChunkZ(); z++)
for (int x = getMinChunkX(); x <= getMaxChunkX(); x++) {
for (int z = getMinChunkZ(); z <= getMaxChunkZ(); z++) {
executor.accept(x, z);
}
}
}
public static void resetWorld() {
@@ -87,8 +87,9 @@ public abstract class SpecialItem {
}
private static boolean handleUse(ItemStack item, Player player, List<SpecialItem> items) {
for (SpecialItem specialItem : items)
for (SpecialItem specialItem : items) {
if (item.isSimilar(specialItem.getItem())) return specialItem.handleUse(player);
}
return false;
}