[.15.4] luaEntity:get_module_inventory() Assembly machines

This subforum contains all the issues which we already resolved.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

[.15.4] luaEntity:get_module_inventory() Assembly machines

Post 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 14280
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

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.
Post Reply

Return to “Resolved Problems and Bugs”