Closed jvanbruegge closed 8 months ago
the getStops returns a struct array... which is done by value...
so you have set the stops to the timetable again...
instead of stop = train:getTimeTable():getStops()[1]
you should do
stops = train:getTimeTable():getStops()
stop = stops[1]
[...]
stop:setRuleSet(rules)
train:setStops(stops)
Thanks, I will try this later. Btw, calling train:setStops()
(so without argument) will crash the game. I can get the crash report later as well
Describe the bug
TrainStop:setRuleSet()
ignores load and unload filters of the rule set.To Reproduce Steps to reproduce the behavior:
Expected behavior The timetable of the train was changed to add the item in the container as load filter to the stop
Actual behavior The train has the old time table without load filters
Additional context v0.3.15