https://lua-api.factorio.com/latest/Lua ... can_insert
Steps to reproduce:
1. start new game
2. run player command
Code: Select all
/c game.print(game.player.insert{name="submachine-gun", count=1})
4. run player command
Code: Select all
/c game.print(game.player.can_insert{name="submachine-gun", count=1})
actual: true