mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 19:50:30 +00:00
Fixed disguise options not working
This commit is contained in:
parent
63a42ac7db
commit
9cc6889f7d
2 changed files with 3 additions and 3 deletions
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<!-- A good example on why temporary names for project identification shouldn't be used -->
|
<!-- A good example on why temporary names for project identification shouldn't be used -->
|
||||||
<groupId>LibsDisguises</groupId>
|
<groupId>LibsDisguises</groupId>
|
||||||
<artifactId>LibsDisguises</artifactId>
|
<artifactId>LibsDisguises</artifactId>
|
||||||
<version>9.8.4</version>
|
<version>9.8.4-SNAPSHOT</version>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<defaultGoal>clean install</defaultGoal>
|
<defaultGoal>clean install</defaultGoal>
|
||||||
|
|
|
@ -45,7 +45,7 @@ public class DisguiseParser {
|
||||||
case DROPPED_ITEM:
|
case DROPPED_ITEM:
|
||||||
HashMap<String, Boolean> returns = new HashMap<>();
|
HashMap<String, Boolean> returns = new HashMap<>();
|
||||||
|
|
||||||
String beginning = "libsdisguises.options." + permNode + ".";
|
String beginning = "libsdisguises.options." + permNode.toLowerCase() + ".";
|
||||||
|
|
||||||
for (PermissionAttachmentInfo permission : sender.getEffectivePermissions()) {
|
for (PermissionAttachmentInfo permission : sender.getEffectivePermissions()) {
|
||||||
String lowerPerm = permission.getPermission().toLowerCase();
|
String lowerPerm = permission.getPermission().toLowerCase();
|
||||||
|
@ -143,7 +143,7 @@ public class DisguiseParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
// If there is at least one whitelisted value, then they needed the whitelist to use it
|
// If there is at least one whitelisted value, then they needed the whitelist to use it
|
||||||
return disguiseOptions.containsValue(true);
|
return !disguiseOptions.containsValue(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getName(Entity entity) {
|
public static String getName(Entity entity) {
|
||||||
|
|
Loading…
Reference in a new issue