setting a train schedule to an empty lua table (computercraft) crashes the game and bricks the world
Waoweens opened this issue ยท 4 comments
Context
Program:
peripheral.wrap("left").setSchedule({})
after running the program, the game will freeze and soon crash, and attempting to enter that world again will cause it to crash immediately.
if this is not the right way to clear the schedule, what is?
Crash Report
Upstream issue, getting the world into this state will be fixed in 0.5.1g.
The world itself is saveable /w NBTExplorer, find the train with an empty schedule in your world's data/create_tracks.dat and remove it/the schedule.
Creators-of-Create#6838
Reading the docs I don't think there is one. (Nor does the fix in 0.5.1g add one)
If it's just about getting the train to not continue, you might be able to setschedule with an invalid destination. (But I'm not sure on that)