FastAsyncWorldEdit

FastAsyncWorldEdit

152k Downloads

Cannot Save Entities with `//schem save ... structure`

senseiwells opened this issue ยท 0 comments

commented

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

  1. Create a box with any entity inside
  2. Select each corner of the box with the wand
  3. Run //copy -e
  4. 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

Anything else?

No response