forked from SteamWar/SteamWar
Hotfix for disabled things
This commit is contained in:
+2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user