Clean up the grantItems method in UpgradeWave.

The Arena parameter is no longer needed. Let's get rid of it.
This commit is contained in:
Andreas Troelsen 2018-06-25 00:12:10 +02:00
parent 0f34e1fdb7
commit 9d0cd8f967
2 changed files with 3 additions and 3 deletions

View File

@ -233,8 +233,8 @@ public class MASpawnThread implements Runnable
for (Player p : arena.getPlayersInArena()) { for (Player p : arena.getPlayersInArena()) {
String className = arena.getArenaPlayer(p).getArenaClass().getLowercaseName(); String className = arena.getArenaPlayer(p).getArenaClass().getLowercaseName();
uw.grantItems(arena, p, className); uw.grantItems(p, className);
uw.grantItems(arena, p, "all"); uw.grantItems(p, "all");
} }
} }

View File

@ -29,7 +29,7 @@ public class UpgradeWave extends AbstractWave
return new HashMap<>(); return new HashMap<>();
} }
public void grantItems(Arena arena, Player p, String className) { public void grantItems(Player p, String className) {
List<Thing> list = upgrades.get(className); List<Thing> list = upgrades.get(className);
if (list == null) return; if (list == null) return;