Correct attempting to use object not string for perm check

This commit is contained in:
libraryaddict 2020-01-14 19:41:40 +13:00
parent 6a3f3b65da
commit 6ed2b71f3f
No known key found for this signature in database
GPG key ID: 052E4FBCD257AEA4

View file

@ -800,7 +800,7 @@ public class DisguiseParser {
String stringValue = ParamInfoManager.toString(valueToSet);
if (!hasPermissionOption(disguiseOptions, valueToSet + "")) {
if (!hasPermissionOption(disguiseOptions, stringValue)) {
throw new DisguiseParseException(LibsMsg.PARSE_NO_PERM_PARAM, stringValue,
disguisePerm.toReadable());
}