Small fix I forgot how to understand

This commit is contained in:
libraryaddict 2014-07-08 10:34:00 +12:00
parent f5a9e20b6f
commit 7072b29b28

View File

@ -395,7 +395,11 @@ public abstract class BaseDisguiseCommand implements CommandExecutor {
} }
if (!disguiseOptions.isEmpty() && miscId != -1) { if (!disguiseOptions.isEmpty() && miscId != -1) {
String toCheck = "" + miscId; String toCheck = "" + miscId;
if (miscData != -1) { if (miscData == 0 || miscData == -1) {
if (!disguiseOptions.contains(toCheck)) {
toCheck += ":0";
}
} else {
toCheck += ":" + miscData; toCheck += ":" + miscData;
} }
if (!disguiseOptions.contains(toCheck)) { if (!disguiseOptions.contains(toCheck)) {