[.15.4] luaEntity:get_module_inventory() Assembly machines
Posted: Sun Apr 30, 2017 5:43 am
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
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