This commit is contained in:
2025-05-18 15:31:48 +02:00
parent 6ed639fbb3
commit 2a314e7035
@@ -70,11 +70,11 @@ public class IngameListener extends GameStateBukkitListener {
@Override @Override
public void run() { public void run() {
List<Pos> posList = blocksToMelt.remove(time); List<Pos> posList = blocksToMelt.remove(time);
System.out.println(blocksToMelt.size() + (posList != null ? 1 : 0) + " " + (posList != null ? posList.size() : "<EMPTY>"));
time++; time++;
if (posList == null) { if (posList == null) {
return; return;
} }
System.out.println(blocksToMelt.size() + " " + posList.size() + " " + blocksToMelt.values().stream().mapToInt(List::size).sum());
int maxBlocks = 1_000; int maxBlocks = 1_000;
while (maxBlocks > 0 && !posList.isEmpty()) { while (maxBlocks > 0 && !posList.isEmpty()) {
Pos pos = posList.removeFirst(); Pos pos = posList.removeFirst();