Railcraft

Railcraft

34M Downloads

Trains locking/idle not serialized?

purpleposeidon opened this issue ยท 11 comments

commented

Locomotives have a "one of my carts is being held by a locking track, so I'll idle even though my button says I'm running" variable, right? It's probably not being serialized.

  1. Locomotive at lava refill station, one of the tank carts being held. Locomotive is chill.
  2. Visit nether for cart to grab more lava
  3. Return, locomotive is not chill & is all sproinged out.
commented

This one is actually more similar to #657.

commented

"sproinged out" that's a new one.

commented

I think the issue is that I'm not telling the train that it is locked in this case.

commented

However, the code looks like it should be handling this correctly. I may need to use the debugger.

commented
commented

@purpleposeidon Is it still happening?

commented

I haven't noticed it recently.

commented
commented

I've opened a pull to debug. Hope it works!

commented

I think it exists, since no track kit calls TileEntity#markDirty at all!

commented

I have confirmed that train states are indeed not serialized.