Clean up code. Add in code. Forgot what I did.

This commit is contained in:
libraryaddict
2013-12-02 03:31:54 +13:00
parent a969811c64
commit 4dc6853945
3 changed files with 38 additions and 16 deletions

View File

@@ -266,6 +266,13 @@ public class DisguiseUtilities {
return toReturn;
}
public static TargettedDisguise[] getDisguises(int entityId) {
if (getDisguises().containsKey(entityId)) {
return getDisguises().get(entityId).toArray(new TargettedDisguise[getDisguises().get(entityId).size()]);
}
return new TargettedDisguise[0];
}
public static TargettedDisguise getDisguise(Player observer, int entityId) {
if (getDisguises().containsKey(entityId)) {
for (TargettedDisguise disguise : getDisguises().get(entityId)) {