Also, when y try to change direction of the train on the Trainbuilder Controller i got this error and crash:
Error while running event trainConstructionSite::Custom event (ID 232)
Error while running event trainConstructionSite::script_raised_destroy (ID 79)
trainConstructionSite/src/trainfuel.lua:15: attempt to index local 'removedInventory' (a nil value)
stack traceback:
trainConstructionSite/src/trainfuel.lua:15: in function 'onRemoveEntity'
trainConstructionSite/control.lua:83: in function <trainConstructionSite/control.lua:76>
[C]: in function 'destroy'
trainConstructionSite/src/trainassembly.lua:1141: in function 'onPlayerRotatedEntity'
trainConstructionSite/control.lua:101: in function <trainConstructionSite/control.lua:97>
[C]: in function 'raise_event'
trainConstructionSite/src/traincontroller-gui.lua:237: in function 'clickHandler'
trainConstructionSite/src/traincontroller-gui.lua:949: in function 'onClickElement'
trainConstructionSite/control.lua:148: in function <trainConstructionSite/control.lua:145>
stack traceback:
[C]: in function 'destroy'
trainConstructionSite/src/trainassembly.lua:1141: in function 'onPlayerRotatedEntity'
trainConstructionSite/control.lua:101: in function <trainConstructionSite/control.lua:97>
[C]: in function 'raise_event'
trainConstructionSite/src/traincontroller-gui.lua:237: in function 'clickHandler'
trainConstructionSite/src/traincontroller-gui.lua:949: in function 'onClickElement'
trainConstructionSite/control.lua:148: in function <trainConstructionSite/control.lua:145>
stack traceback:
[C]: in function 'raise_event'
trainConstructionSite/src/traincontroller-gui.lua:237: in function 'clickHandler'
trainConstructionSite/src/traincontroller-gui.lua:949: in function 'onClickElement'
trainConstructionSite/control.lua:148: in function <trainConstructionSite/control.lua:145>