Fix IngameListener

This commit is contained in:
2025-05-18 15:41:43 +02:00
parent 778d0282d3
commit 400c78447a
@@ -73,7 +73,7 @@ public class IngameListener extends GameStateBukkitListener {
@Override
public void run() {
List<Pos> blocksToBreak = blocksToMelt.entrySet().stream()
.filter(entry -> entry.getValue() == time)
.filter(entry -> entry.getValue() <= time)
.map(Map.Entry::getKey)
.collect(Collectors.toList());
time++;
@@ -268,7 +268,7 @@ public class IngameListener extends GameStateBukkitListener {
break;
}
Pos pos = new Pos(block.getLocation().getBlockX(), block.getLocation().getBlockY(), block.getLocation().getBlockZ());
blocksToMelt.putIfAbsent(pos, time + meltingTime);
blocksToMelt.putIfAbsent(pos, time + meltingTime + 1);
}
@EventHandler