From 3b10d8abc39b20699390c2e26b38f75548c42e2d Mon Sep 17 00:00:00 2001 From: Alejandro <25-alejandro@users.noreply.git.krews.org> Date: Sat, 18 May 2019 21:25:07 +0300 Subject: [PATCH] Remove unnecessary THashSet copyings --- .../habbohotel/games/battlebanzai/BattleBanzaiGame.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java b/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java index cc4139a5..01650d44 100644 --- a/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java +++ b/src/main/java/com/eu/habbo/habbohotel/games/battlebanzai/BattleBanzaiGame.java @@ -337,10 +337,10 @@ public class BattleBanzaiGame extends Game stack.add(tile); List> 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;