mojira.dev
MC-105451

Detector rails stay powered/active when loaded with a structure block

The bug

When a mine cart is over a detector rail, it gets activated/turned on (this is expected), when the mine cart is removed (ie: shot with a bow, pushed, broken), the detector rail remains active/turned on.

Updating the rail does not solve the issue, one must break & replace in order for rail to return to unpowered/turned off state.

⚠️ Update: This only seems to occur with the structure block, and when it loads entities from a template! Hope this is useful for debugging

How to reproduce

  1. Save a structure with an activated detector rail.

  2. Load the structure twice at the same place or Load the structure, so the rail from it overwrites an existing detector rail.

Alternative repro steps:

1. Save a structure containing a minecart on a detector rail
2. Load the structure in some other place
3. Destroy the loaded minecart
4. Load the structure again, overwriting the first load
5. Destroy the loaded minecart
6. Observe the detector rail not deactivate

Linked issues

Attachments

Comments 9

Can't reproduce
Please force a crash by pressing F3 + C for 10 seconds while in-game and attach the crash report (minecraft/crash-reports/crash-<DATE>-client.txt) here.

Crash report as requested

Could you also please attach the log file, after having this issue (launcher tab with your username in it)?

Log file as requested (latest.log)

Would you please attach the world as well so we can try and reproduce the issue in your world?

Put your world in a zip file and attach it here, if it's too big, upload on another site, and provide the download link.

Here is the .zip of the world

Cannot reproduce in 1.11

I am still able to reproduce in 1.11, the issue seems to be with the structure block keeping entities

I have a video of what is happening in if my explanation wasn't clear: https://youtu.be/v-6m1aRK0i8

Still affected 1.19.3 and 23w04a

Jeff

(Unassigned)

Confirmed

Structures

Minecraft 1.10.2, Minecraft 1.11, Minecraft 1.12.1, Minecraft 1.12.2, 20w07a, 1.19.3, 23w04a

Retrieved