railcraft-reborn / railcraft

Redefine your rails
Other
83 stars 18 forks source link

Junction breaking causes infinite tracks whit a spike maul #160

Closed ElRichiRicon closed 7 months ago

ElRichiRicon commented 7 months ago

Is there an existing issue for this?

Description of the Bug

Breaking a junction drops a rail, while only changing the junction to a normal rail. This means that using a spike maul to change a rail into a junction and then breaking it, a rail has been duplicated. This works with any type of rail.

Railcraft Reborn version

1.0.10

NeoForge/Forge version

47.2.20

Minecraft version

1.20.1

Minecraft server

No

To Reproduce

  1. Place one (1) rail on the world.
  2. Turn the rail into a junction with a spike maul.
  3. Break the junction. It drops a rail and keeps a rail in the world.
  4. Break the rail.
  5. Now we have two (2) rails

Expected behavior

To be consistent with the other turns, breaking a junction shouldn't drop anything.

Logs & Environment

No response

Screenshots & Video

No response