Fix Simulator move all with multiple prime phases
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
a242cf2321
Commit
bf1dbd5bb2
@ -312,9 +312,9 @@ public class TNTSimulator {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updatePosition(Set<TNTSpawn> tntSpawns, Consumer<Vector> positionChanger) {
|
private void updatePosition(Set<TNTSpawn> tntSpawns, Consumer<Vector> positionChanger) {
|
||||||
Set<Vector> vectors = new HashSet<>();
|
Map<Vector, Boolean> vectors = new IdentityHashMap<>();
|
||||||
for (TNTSpawn tntSpawn : tntSpawns) {
|
for (TNTSpawn tntSpawn : tntSpawns) {
|
||||||
if (vectors.add(tntSpawn.position)) {
|
if (vectors.put(tntSpawn.position, true) == null) {
|
||||||
positionChanger.accept(tntSpawn.position);
|
positionChanger.accept(tntSpawn.position);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren