Cannot Save Entities with `//schem save ... structure`
senseiwells opened this issue ยท 0 comments
Server Implementation
Paper
Server Version
1.20.5/6
Describe the bug
When trying to save a schematic using the Minecraft structure format I get this error:
[11:40:45 ERROR]: Uncaught exception occurred in task: Saving schematic pride_lobby
java.lang.UnsupportedOperationException: null
at com.google.common.collect.ImmutableMap.put(ImmutableMap.java:781) ~[guava-32.1.2-jre.jar:?]
at FastAsyncWorldEdit-Bukkit-2.10.0.jar/com.fastasyncworldedit.core.extent.clipboard.io.schematic.MinecraftStructure.write(MinecraftStructure.java:241) ~[FastAsyncWorldEdit-Bukkit-2.10.0.jar:?]
at FastAsyncWorldEdit-Bukkit-2.10.0.jar/com.sk89q.worldedit.command.SchematicCommands$SchematicSaveTask.call(SchematicCommands.java:995) ~[FastAsyncWorldEdit-Bukkit-2.10.0.jar:?]
at FastAsyncWorldEdit-Bukkit-2.10.0.jar/com.sk89q.worldedit.command.SchematicCommands$SchematicSaveTask.call(SchematicCommands.java:889) ~[FastAsyncWorldEdit-Bukkit-2.10.0.jar:?]
at FastAsyncWorldEdit-Bukkit-2.10.0.jar/com.sk89q.worldedit.command.util.AsyncCommandBuilder.runTask(AsyncCommandBuilder.java:154) ~[FastAsyncWorldEdit-Bukkit-2.10.0.jar:?]
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:131) ~[guava-32.1.2-jre.jar:?]
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:75) ~[guava-32.1.2-jre.jar:?]
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:82) ~[guava-32.1.2-jre.jar:?]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.base/java.lang.Thread.run(Thread.java:1583) ~[?:?]
Had a quick look at the code and it seems you're trying add items into an immutable map here as CompoundTag
always returns an immutable map.
To Reproduce
- Create a box with any entity inside
- Select each corner of the box with the wand
- Run
//copy -e
- Run
//schem save entity structure
Expected behaviour
The selected clipboard would be saved as a nbt structure
Screenshots / Videos
No response
Error log (if applicable)
No response
Fawe Debugpaste
https://athion.net/ISPaster/paste/view/cb5b552a243e4db3b0d97036a2276974
Fawe Version
2.10.0
Checklist
- I have included a Fawe debugpaste.
- I am using the newest build from https://ci.athion.net/job/FastAsyncWorldEdit/ and the issue still persists.
Anything else?
No response