Fix SimulatorWatcher for non watched Simulator
Dieser Commit ist enthalten in:
Ursprung
648482183a
Commit
c0551c0cf8
@ -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);
|
||||||
|
if (rEntityServer != null) {
|
||||||
rEntityServer.getEntities().forEach(REntity::die);
|
rEntityServer.getEntities().forEach(REntity::die);
|
||||||
createSim(rEntityServer, simulator);
|
createSim(rEntityServer, simulator);
|
||||||
|
}
|
||||||
|
|
||||||
new ArrayList<>(watchers.values()).forEach(simulatorRunnablePair -> {
|
new ArrayList<>(watchers.values()).forEach(simulatorRunnablePair -> {
|
||||||
if (simulatorRunnablePair.getKey() == simulator) {
|
if (simulatorRunnablePair.getKey() == simulator) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren