Open sparr opened 4 years ago
LuaItemStack.active_index is 1 (not nil or 0) for a brand new empty blueprint book, which led to a crash when that index in the inventory was accessed.
LuaItemStack.active_index
While I was in there I also refactored get_blueprint from recursive to iterative.
Fixes #39
I just tried this and it worked for me.
Work's like a charm for me too...
See also #43
LuaItemStack.active_index
is 1 (not nil or 0) for a brand new empty blueprint book, which led to a crash when that index in the inventory was accessed.While I was in there I also refactored get_blueprint from recursive to iterative.
Fixes #39