Create

Create

86M Downloads

Player is dismounted from seat on train assembly

slava110 opened this issue ยท 0 comments

commented

Describe the Bug

When you're assembling a train player is automatically dismounted from his seat if he's sitting

Reproduction Steps

  1. Sit on a seat attached to train structure
  2. Assemble train
  3. You're not sitting anymore

Expected Result

Sitting player should continue sitting when train is assembled

Screenshots and Videos

Demo (I've added simple code to assemble/disassemble train on redstone signal pulse)
https://user-images.githubusercontent.com/26705162/194750617-ab7ea012-f1da-4318-b684-ab141420c728.mp4

Crash Report or Log

No response

Operating System

Windows 10

Mod Version

0.5.0f

Minecraft Version

1.19.2

Forge Version

43.1.0

Other Mods

No response

Additional Context

Caused by Carriage.setContraption method. It's called after AbstractContraption.addSittingPassenger and it's removing player passengers from the train
image