SimRework2.0 #216
@ -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