fix snafu
This commit is contained in:
1 parent
197612ade7
commit
3ff2b2efbc
1 file changed
+1
-1
@@ -129,7 +129,7 @@ public class CarpetSettings
|
||||
|
||||
private static class CarpetPermissionLevel extends Validator<String> {
|
||||
@Override public String validate(ServerCommandSource source, ParsedRule<String> currentRule, String newValue, String string) {
|
||||
if (source.hasPermissionLevel(4))
|
||||
if (source == null || source.hasPermissionLevel(4))
|
||||
return newValue;
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user