inventory in schem map aren't successfully pasted into plots
Server Implementation
Paper
Server Version
1.21.1
Describe the bug
Inventorys in schem map such as items in chest and hoppers aren't successfully pasted into plots, chests and hoppers are empty in plots since PlotSquard 7, the affect the redstone machine and it make the redstone machine work incorrectly such as Redstone Automatic Classifier.
To Reproduce
use a schem with items in chest(GEN_ROAD_SCHEMATIC\plotworld\plot.schem), use it generate plots.
Expected behaviour
the chests in plot are empty.
Screenshots / Videos
No response
Error log (if applicable)
No response
Plot Debugpaste
https://athion.net/ISPaster/paste/view/c72daecaf04047e1a8ce527bbabaaebf
PlotSquared Version
PlotSquared version PlotSquared-7.5.4-Premium
Checklist
- [x] I have included a Plot debugpaste.
- [x] I am using the newest build from https://www.spigotmc.org/resources/77506/ and the issue still persists.
Anything else?
No response
It is very likely that this issue is caused by FastAsyncWorldEdit, not PlotSquared itself.
To confirm this:
- Try pasting a schematic with FAWE disabled. If inventories are restored correctly, the issue is definitely with FAWE.
- Make sure you are using the latest version of FAWE.
Explanation: When FAWE is installed, PlotSquared delegates all schematic pasting operations to FAWE’s own handler (FaweDelegateSchematicHandler). This means that PlotSquared’s internal logic for restoring inventories (such as chest and hopper contents) is bypassed, and FAWE is fully responsible for handling tile entities and NBT data during schematic pasting.
This is during generation not schematic pasting
probably related to https://github.com/IntellectualSites/PlotSquared/issues/4552
This doesn't seem like a P2 issue - we are setting the block data in a populator. The generator system in Minecraft/Spigot/paper is notoriously dodgy
Thanks for this fix, but the Item Frames are disappered after schem pasted,the Item Frames with item rotate state and items in Item Frames can not export and save normally in plots, can this be fixed?