More generifying (is that a word?)
This commit is contained in:
parent
1ebec833e4
commit
4ca80c755e
@ -69,7 +69,7 @@ public class PerkSkeletons extends Perk
|
||||
}
|
||||
}
|
||||
|
||||
private Map<Player, ArrayList<Skeleton>> _minions = new HashMap<>();
|
||||
private Map<Player, List<Skeleton>> _minions = new HashMap<>();
|
||||
|
||||
private boolean _name;
|
||||
private int _maxDist = 8;
|
||||
@ -241,7 +241,7 @@ public class PerkSkeletons extends Perk
|
||||
if (event.getType() != UpdateType.SEC)
|
||||
return;
|
||||
|
||||
for (ArrayList<Skeleton> skels : _minions.values())
|
||||
for (List<Skeleton> skels : _minions.values())
|
||||
{
|
||||
for (Skeleton skel : skels)
|
||||
{
|
||||
@ -253,7 +253,7 @@ public class PerkSkeletons extends Perk
|
||||
|
||||
public boolean IsMinion(Entity ent)
|
||||
{
|
||||
for (ArrayList<Skeleton> skels : _minions.values())
|
||||
for (List<Skeleton> skels : _minions.values())
|
||||
{
|
||||
for (Skeleton skel : skels)
|
||||
{
|
||||
@ -329,7 +329,7 @@ public class PerkSkeletons extends Perk
|
||||
|
||||
private void despawnSkels(Player player)
|
||||
{
|
||||
ArrayList<Skeleton> skels = _minions.remove(player);
|
||||
List<Skeleton> skels = _minions.remove(player);
|
||||
|
||||
if (skels == null)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user