fix snafu

This commit is contained in:
gnembon committed 2021-11-30 18:41:17 +01:00
1 parent 197612ade7
commit 3ff2b2efbc
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}