[Rseding] [0.17.79] can_insert returns true when should be false
Posted: Fri May 22, 2020 10:14 pm
When a player's inventory is full, can_insert returns true
https://lua-api.factorio.com/latest/Lua ... can_insert
Steps to reproduce:
1. start new game
2. run player command
3. repeat step #2 until inventory is full:
4. run player command
expected: false
actual: true
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