Hotfix for disabled things

This commit is contained in:
2025-04-20 08:12:22 +02:00
parent 48ea88e1a7
commit 230ac09b61
@@ -112,10 +112,12 @@ public class SimulatorStabGenerator implements Listener {
private void setup() {
TNTPhase tntPhase = simulator.getGroups().stream()
.filter(simulatorGroup -> !simulatorGroup.isDisabled())
.map(SimulatorGroup::getElements)
.flatMap(List::stream)
.filter(TNTElement.class::isInstance)
.map(TNTElement.class::cast)
.filter(tntElement -> !tntElement.isDisabled())
.filter(tntElement -> this.tntElement != tntElement)
.map(tntElement -> tntElement.getPhases().stream().max(Comparator.comparingInt(TNTPhase::getTickOffset)))
.filter(Optional::isPresent)