Search found 1 match

by lalmec
Fri May 22, 2020 10:14 pm
Forum: Resolved Problems and Bugs
Topic: [Rseding] [0.17.79] can_insert returns true when should be false
Replies: 3
Views: 2589

[Rseding] [0.17.79] can_insert returns true when should be false

When a player's inventory is full, can_insert returns true

https://lua-api.factorio.com/latest/LuaControl.html#LuaControl.can_insert


Steps to reproduce:

1. start new game
2. run player command
/c game.print(game.player.insert{name="submachine-gun", count=1})
3. repeat step #2 until inventory ...

Go to advanced search