To reproduce:
- Place an assembling machine 3
- Set it to any recipe (how about Processing unit?)
- Insert four speed module 3's
- Hover the mouse over the entity
- Run the provided command below
- Observe that the function will return true despite the fact that the module inventory is full
Code: Select all
/c game.print(game.player.selected.can_insert{name="speed-module-3", count=10})