Skip to content

Commit 39dc549

Browse files
authored
Don't require actor for block parsing (#3154)
1 parent 42be911 commit 39dc549

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

worldedit-core/src/main/java/com/sk89q/worldedit/extension/factory/parser/DefaultBlockParser.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,8 @@ private BaseBlock parseLogic(String input, ParserContext context) throws InputPa
539539
}
540540

541541
//FAWE start - only handle if extra data is actually supplied or if the user has permission for nbt
542-
boolean allowWorkingDefault = context.requireActor().hasPermission("worldedit.anyblock.nbt") && nbt != null;
542+
boolean allowWorkingDefault = nbt != null &&
543+
(context.getActor() == null || context.getActor().hasPermission("worldedit.anyblock.nbt"));
543544
if (DeprecationUtil.isSign(blockType) && (blockAndExtraData.length > 1 || allowWorkingDefault)) {
544545
//FAWE end
545546
// Allow special sign text syntax

0 commit comments

Comments
 (0)