Code: Select all
/c game.players[1].character.get_inventory(defines.inventory.player_quickbar).remove("stone-wall")
Next, when I do
Code: Select all
/c game.players[1].character.get_inventory(defines.inventory.player_quickbar).insert("stone-wall")
Same behavior with the clear method, by the way.