ldtteam / minecolonies

Minecolonies minecraft mod
http://minecolonies.com/
GNU General Public License v3.0
656 stars 337 forks source link

[BUG] Doors/gates that are open are replaced when repaired #9817

Open tecnobrat opened 7 months ago

tecnobrat commented 7 months ago

Is there an existing issue for this?

Are you using the latest MineColonies Version?

Did you check on the Wiki? or ask on Discord?

What were you playing at the time? Were you able to reproduce it in both settings?

Minecraft Version

1.20.1

MineColonies Version

1.20.1-1.1.494-BETA

Structurize Version

1.20.1-1.0.701-BETA

Related Mods and their Versions

Forge: 47.2.17 BlockUI: 1.20.1-1.0.139-BETA Domum Ornamentum: 1.20-1.0.160-BETA

Current Behavior

When you repair a building that has doors or gates that are in a different state (open instead of closed) than on the blueprint, it replaces them. I believe it happens for trapdoors, or any item that can be "opened".

Expected Behavior

It should not replace doors/gates/trapdoors that are in the correct physical placement, regardless of their open/closed state.

Reproduction Steps

  1. Build a building.
  2. Open the door.
  3. Repair the building.
  4. It replaces the door.

Logs

No log

Anything else?

tecnobrat commented 7 months ago

This also happens with furnaces and beehives. I assume anything with a different current state than the default.

Raycoms commented 7 months ago

It's not a trivial thing to handle because sometimes state (e.g. type) completely changes and the block needs to be replaced. So it would have to be on a heavy case-by-case basis.