railcraft-reborn / railcraft

Redefine your rails
Other
94 stars 24 forks source link

AutoCoupler can't disable auto couple. #168

Closed vexxmage closed 9 months ago

vexxmage commented 9 months ago

Is there an existing issue for this?

Description of the Bug

With the change to the couple track with the check for powered state on the block, minecartPassed is not callled on the block entity, there by setAutoLinkEnabled can not be called to disable auto couple.

Railcraft Reborn version

1.20.x

NeoForge/Forge version

47.1.63

Minecraft version

1.20.1

Minecraft server

No

To Reproduce

Loco passes powered auto couple track. Same Loco passes unpowered auto couple track. Loco collides with cart and it still couples.

Expected behavior

cart passing a powered auto couple track, then after passing unpowered auto couple track, cart should not couple to other cart.

Logs & Environment

No response

Screenshots & Video

No response