FastAsyncWorldEdit

FastAsyncWorldEdit

245k Downloads

Suspicious sand NBT default state

RobijnenTaart opened this issue ยท 2 comments

commented

Server Implementation

Paper

Server Version

1.21.3

Describe the bug

When running:
//rep yellow sand,suspicious_sand,smooth_sandstone
Error being displayed:
Invalid value for <to> (You are not allowed to use nbt. Lacking permission: worldedit.anyblock.nbt), acceptable values are any pattern.
Solution for problem (FAWE staff suggested):
Make "default" NBT is handled separately.

To Reproduce

  1. Make a selection.
  2. //rep yellow sand,suspicious_sand,smooth_sandstone

Expected behaviour

Replace yellow_wool to sand,suspicious_sand,smooth_sandstone

Screenshots / Videos

No response

Error log (if applicable)

No response

Fawe Debugpaste

https://athion.net/ISPaster/paste/view/a66ea62682964555802864f3fbfc6e81

Fawe Version

FastAsyncWorldEdit-Bukkit-2.12.3-SNAPSHOT-1002.jar

Checklist

Anything else?

No response

commented

We could do a check on if the NBT is equal to the default nbt, but I do not know if a simple reference comparison on the default NBT would be enough, and also whether a #equals check would necessarily work either.

commented

Note for replication: The //set command is enough to test it.

  • //set sand is allowed and //set suspicious_sand or //set chest is not allowed (without the worldedit.anyblock.nbt permission).