PlotSquared icon indicating copy to clipboard operation
PlotSquared copied to clipboard

inventory in schem map aren't successfully pasted into plots

Open LobbyTech-MC opened this issue 5 months ago • 5 comments

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

LobbyTech-MC avatar Jul 23 '25 11:07 LobbyTech-MC

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.

Leviaria avatar Jul 26 '25 17:07 Leviaria

This is during generation not schematic pasting

dordsor21 avatar Jul 26 '25 17:07 dordsor21

probably related to https://github.com/IntellectualSites/PlotSquared/issues/4552

PierreSchwang avatar Aug 20 '25 20:08 PierreSchwang

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

dordsor21 avatar Aug 23 '25 16:08 dordsor21

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?

LobbyTech-MC avatar Aug 26 '25 15:08 LobbyTech-MC