More generifying (is that a word?)

This commit is contained in:
Spencer 2017-12-29 00:43:30 -05:00 committed by Alexander Meech
parent 1ebec833e4
commit 4ca80c755e

View File

@ -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;