Page 1 of 1

[.15.4] luaEntity:get_module_inventory() Assembly machines

Posted: Sun Apr 30, 2017 5:43 am
by Nexela
Assembly machines with no recipe set won't insert modules using entity.get_module_inventory().insert() however doing entity.insert() correctly puts modules into module inventory.

Not sure if this in intended behavior or not.

/c game.print(game.player.selected.get_module_inventory().insert({name="speed-module-3", count = 2}))
Assembling machine 2 with no reciple selected outputs 0
Assembling machine 2 with recipe selected outputs 2,
inserting() productivity modules in machines with recipes that don't support them outputs 0 correctly

/c game.print(game.player.selected.insert({name="speed-module-3", count = 2}))
Assembling machine 2 with no reciple selected outputs 2
Assembling machine 2 with recipe selected outputs 2
inserting() productivity modules in machines with recipes that don't support them outputs 0 correctly

Re: [.15.4] luaEntity:get_module_inventory() Assembly machines

Posted: Sun Apr 30, 2017 7:11 am
by Rseding91
Thanks for the report. I've fixed it for the next version of 0.15.