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
[.15.4] luaEntity:get_module_inventory() Assembly machines
Re: [.15.4] luaEntity:get_module_inventory() Assembly machines
Thanks for the report. I've fixed it for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.