dewiniaid / BlueprintExtensions

Useful blueprinting tools for Factorio
Other
4 stars 8 forks source link

Fix crash on blueprint book creation, also refactor get_blueprint #41

Open sparr opened 4 years ago

sparr commented 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.

While I was in there I also refactored get_blueprint from recursive to iterative.

Fixes #39

morsk commented 3 years ago

I just tried this and it worked for me.

junhinhow commented 3 years ago

Work's like a charm for me too...

rpdelaney commented 3 years ago

See also #43