EngineHub / WorldEdit

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

When using the //paste or //stack command, the redstone is inserted incorrectly. #2516

Open Xakerors opened 5 months ago

Xakerors commented 5 months ago

WorldEdit Version

7.3.0

Platform Version

Fabric 0.15.10

Confirmations

Bug Description

Structures with the addition of redstone components are not fully inserted when trying to copy and paste them, or stack 2024-04-24_00 44 01 2024-04-24_00 44 47 2024-04-24_00 44 56 2024-04-24_00 45 18 them.

Expected Behavior

I expected that the structure would be fully installed with the preservation of redstone.

Reproduction Steps

  1. I select an area (two points)
  2. I choose the direction in order to execute the command "//stack"
  3. I'm writing "//stack"
  4. All the blocks were installed as needed, except for redstone.

Anything Else?

I want to say a very important point. If the selection area is affected only by the redstone and nothing superfluous, then it is inserted normally. 2024-04-24_00 58 27 2024-04-24_00 58 44 2024-04-24_00 58 48

octylFractal commented 5 months ago

Something changed in how redstone is updated, and we need to add an additional hook to prevent block breaking during it. We may shift how block placement is done entirely to avoid surprises like this, which would take longer.

octylFractal commented 5 months ago

For others finding this issue, this does affect all platforms, as we use the same code to place on all of them.

zombachu commented 4 months ago

Btw for those looking for a workaround, 7.2 doesn't have this problem if you're able to use it (tested on Paper 1.20.4)