Skip to content

Fix minecarts disappearing when derailing on sublevel#952

Open
JpegN wants to merge 3 commits into
ryanhcode:mainfrom
JpegN:main
Open

Fix minecarts disappearing when derailing on sublevel#952
JpegN wants to merge 3 commits into
ryanhcode:mainfrom
JpegN:main

Conversation

@JpegN
Copy link
Copy Markdown

@JpegN JpegN commented May 19, 2026

AbstractMinecartMixin: when a cart isn't on rails anymore (!isOnRails()), kick it back to world space right away instead of waiting for it to leave plot bounds and killing it. Server-only.

ClientPacketListenerMixin.sable$lerp: the sub-level to world branch was using setPos, which doesn't touch xo/yo/zo. That caused a one-frame flicker since rendering would interpolate between shipyard and world coords, drawing the entity at a ~15M block midpoint. Swapped it for moveTo. Fixes the flicker for any entity, not just minecarts.

Minecart entries in destroy_when_leaving_plot.json aren't used anymore.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 19, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants