EngineHub / WorldEdit

🗺️ Minecraft map editor and mod
https://enginehub.org/worldedit/
Other
3.13k stars 883 forks source link

Sending command output to commandblocks async causes exception #2628

Open seema84 opened 2 months ago

seema84 commented 2 months ago

WorldEdit Version

WorldEdit v7.3.4+6823-6263244

Platform Version

Paper version 1.20.6-147

Confirmations

Bug Description

When I try to load and paste a schematic into Commandblocks, I get the following error message

[WorldEdit Task Executor - 3/INFO]: test2 loaded /mnt/server1/plugins/WorldEdit/schematics/test5.schem
[WorldEdit Task Executor - 3/ERROR]: Thread WorldEdit Task Executor - 3 failed main thread check: sendSystemMessage to a command block
java.lang.Throwable: null
    at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:14) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
    at net.minecraft.world.level.BaseCommandBlock.sendSystemMessage(BaseCommandBlock.java:181) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
    at org.bukkit.craftbukkit.command.CraftBlockCommandSender.sendMessage(CraftBlockCommandSender.java:48) ~[paper-1.20.6.jar:1.20.6-147-e41d44f]
    at worldedit-bukkit-7.3.4.jar/com.sk89q.worldedit.util.formatting.text.adapter.bukkit.LegacyAdapter.sendMessage(LegacyAdapter.java:36) ~[worldedit-bukkit-7.3.4.jar:?]
    at worldedit-bukkit-7.3.4.jar/com.sk89q.worldedit.util.formatting.text.adapter.bukkit.TextAdapter0.sendComponent(TextAdapter.java:138) ~[worldedit-bukkit-7.3.4.jar:?]
    at worldedit-bukkit-7.3.4.jar/com.sk89q.worldedit.util.formatting.text.adapter.bukkit.TextAdapter.sendComponent(TextAdapter.java:82) ~[worldedit-bukkit-7.3.4.jar:?]
    at worldedit-bukkit-7.3.4.jar/com.sk89q.worldedit.util.formatting.text.adapter.bukkit.TextAdapter.sendMessage(TextAdapter.java:48) ~[worldedit-bukkit-7.3.4.jar:?]
    at worldedit-bukkit-7.3.4.jar/com.sk89q.worldedit.bukkit.BukkitCommandSender.print(BukkitCommandSender.java:101) ~[worldedit-bukkit-7.3.4.jar:?]
    at worldedit-bukkit-7.3.4.jar/com.sk89q.worldedit.command.util.AsyncCommandBuilder.runTask(AsyncCommandBuilder.java:163) ~[worldedit-bukkit-7.3.4.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) ~[?:?]

cb nr1: /schematic load test5 sponge.3 cb nr2: //placement here cb nr3: //paste

nr2

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not been fully confirmed. It will be closed if no further activity occurs. Thank you for your contributions.