mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Remove unnecessary THashSet copyings
This commit is contained in:
parent
775d429833
commit
3b10d8abc3
@ -337,10 +337,10 @@ public class BattleBanzaiGame extends Game
|
||||
stack.add(tile);
|
||||
|
||||
List<List<RoomTile>> result = new ArrayList<>();
|
||||
result.add(this.floodFill(x, y - 1, new THashSet<>(lockedTiles), stack, color));
|
||||
result.add(this.floodFill(x, y + 1, new THashSet<>(lockedTiles), stack, color));
|
||||
result.add(this.floodFill(x - 1, y, new THashSet<>(lockedTiles), stack, color));
|
||||
result.add(this.floodFill(x + 1, y, new THashSet<>(lockedTiles), stack, color));
|
||||
result.add(this.floodFill(x, y - 1, lockedTiles, stack, color));
|
||||
result.add(this.floodFill(x, y + 1, lockedTiles, stack, color));
|
||||
result.add(this.floodFill(x - 1, y, lockedTiles, stack, color));
|
||||
result.add(this.floodFill(x + 1, y, lockedTiles, stack, color));
|
||||
|
||||
if (result.contains(null)) return null;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user