mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2025-02-18 22:24:29 +00:00
Correct attempting to use object not string for perm check
This commit is contained in:
parent
e70c690751
commit
e7dd114705
1 changed files with 1 additions and 1 deletions
|
@ -800,7 +800,7 @@ public class DisguiseParser {
|
||||||
|
|
||||||
String stringValue = ParamInfoManager.toString(valueToSet);
|
String stringValue = ParamInfoManager.toString(valueToSet);
|
||||||
|
|
||||||
if (!hasPermissionOption(disguiseOptions, valueToSet + "")) {
|
if (!hasPermissionOption(disguiseOptions, stringValue)) {
|
||||||
throw new DisguiseParseException(LibsMsg.PARSE_NO_PERM_PARAM, stringValue,
|
throw new DisguiseParseException(LibsMsg.PARSE_NO_PERM_PARAM, stringValue,
|
||||||
disguisePerm.toReadable());
|
disguisePerm.toReadable());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue