Allow multiple options in disguise option perm

This commit is contained in:
libraryaddict 2020-04-18 01:07:48 +12:00
parent 63e84973fe
commit e50c9fc99f
No known key found for this signature in database
GPG Key ID: 052E4FBCD257AEA4

View File

@ -264,7 +264,18 @@ public class DisguiseParser {
continue;
}
if (!split[3].replace("_", "").equalsIgnoreCase(type.toReadable().replace(" ", ""))) {
boolean applicable = false;
for (String s : split[3].split("/")) {
if (!s.equals("*") && !s.replace("_", "").equalsIgnoreCase(type.toReadable().replace(" ", ""))) {
continue;
}
applicable = true;
break;
}
if (!applicable) {
continue;
}