mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-11 11:40:29 +00:00
Fixed disguise options code from not working for all disguises
This commit is contained in:
parent
05fcee9034
commit
9c5300f8ab
1 changed files with 13 additions and 23 deletions
|
@ -246,13 +246,6 @@ public class DisguiseParser {
|
||||||
|
|
||||||
private static HashMap<String, Boolean> getDisguiseOptions(CommandSender sender, String permNode,
|
private static HashMap<String, Boolean> getDisguiseOptions(CommandSender sender, String permNode,
|
||||||
DisguisePerm type) {
|
DisguisePerm type) {
|
||||||
switch (type.getType()) {
|
|
||||||
case PLAYER:
|
|
||||||
case FALLING_BLOCK:
|
|
||||||
case PAINTING:
|
|
||||||
case SPLASH_POTION:
|
|
||||||
case FISHING_HOOK:
|
|
||||||
case DROPPED_ITEM:
|
|
||||||
HashMap<String, Boolean> returns = new HashMap<>();
|
HashMap<String, Boolean> returns = new HashMap<>();
|
||||||
|
|
||||||
String beginning = "libsdisguises.options." + permNode.toLowerCase() + ".";
|
String beginning = "libsdisguises.options." + permNode.toLowerCase() + ".";
|
||||||
|
@ -274,9 +267,6 @@ public class DisguiseParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
return returns;
|
return returns;
|
||||||
default:
|
|
||||||
return new HashMap<>();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DisguisePerm getDisguisePerm(String name) {
|
public static DisguisePerm getDisguisePerm(String name) {
|
||||||
|
|
Loading…
Reference in a new issue