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);
|
||||||
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) {
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren