Fixed the disguise blown message not being used

This commit is contained in:
libraryaddict
2014-01-21 14:05:32 +13:00
parent ad109b0cda
commit 85077227a2
4 changed files with 27 additions and 14 deletions

View File

@@ -161,19 +161,6 @@ public class DisguiseUtilities {
}
}
public static TargetedDisguise getMainDisguise(int entityId) {
TargetedDisguise toReturn = null;
if (getDisguises().containsKey(entityId)) {
for (TargetedDisguise disguise : getDisguises().get(entityId)) {
if (disguise.getDisguiseTarget() == TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
return disguise;
}
toReturn = disguise;
}
}
return toReturn;
}
public static TargetedDisguise getDisguise(Player observer, int entityId) {
if (getDisguises().containsKey(entityId)) {
for (TargetedDisguise disguise : getDisguises().get(entityId)) {
@@ -196,6 +183,19 @@ public class DisguiseUtilities {
return new TargetedDisguise[0];
}
public static TargetedDisguise getMainDisguise(int entityId) {
TargetedDisguise toReturn = null;
if (getDisguises().containsKey(entityId)) {
for (TargetedDisguise disguise : getDisguises().get(entityId)) {
if (disguise.getDisguiseTarget() == TargetType.SHOW_TO_EVERYONE_BUT_THESE_PLAYERS) {
return disguise;
}
toReturn = disguise;
}
}
return toReturn;
}
/**
* Get all EntityPlayers who have this entity in their Entity Tracker And they are in the targetted disguise.
*/