mirror of
https://github.com/garbagemule/MobArena.git
synced 2024-11-23 02:55:46 +01:00
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:
parent
0f34e1fdb7
commit
9d0cd8f967
@ -233,8 +233,8 @@ public class MASpawnThread implements Runnable
|
||||
|
||||
for (Player p : arena.getPlayersInArena()) {
|
||||
String className = arena.getArenaPlayer(p).getArenaClass().getLowercaseName();
|
||||
uw.grantItems(arena, p, className);
|
||||
uw.grantItems(arena, p, "all");
|
||||
uw.grantItems(p, className);
|
||||
uw.grantItems(p, "all");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class UpgradeWave extends AbstractWave
|
||||
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);
|
||||
if (list == null) return;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user