SteamWar/BauSystem2.0
Archiviert
12
0

Fix SimulatorWatcher for non watched Simulator

Dieser Commit ist enthalten in:
yoyosource 2023-10-23 21:22:17 +02:00
Ursprung 648482183a
Commit c0551c0cf8

Datei anzeigen

@ -58,8 +58,10 @@ public class SimulatorWatcher {
public void update(Simulator simulator) { public void update(Simulator simulator) {
REntityServer rEntityServer = entityServers.get(simulator); REntityServer rEntityServer = entityServers.get(simulator);
rEntityServer.getEntities().forEach(REntity::die); if (rEntityServer != null) {
createSim(rEntityServer, simulator); rEntityServer.getEntities().forEach(REntity::die);
createSim(rEntityServer, simulator);
}
new ArrayList<>(watchers.values()).forEach(simulatorRunnablePair -> { new ArrayList<>(watchers.values()).forEach(simulatorRunnablePair -> {
if (simulatorRunnablePair.getKey() == simulator) { if (simulatorRunnablePair.getKey() == simulator) {