Code: Select all
game.player.get_inventory(defines.inventory.player_quickbar)
Code: Select all
game.player.get_inventory(defines.inventory.player_main)
Might have already been reported, couldn't use the search function on the forum.
(I did use a variable "me" that was equal to game.player but that shouldn't matter too much)