[0.16.51] god quickbar maps to player main and vice versa
Posted: Thu Jun 21, 2018 9:11 pm
It's me again ya boy
as a character controller:
game.player.get_inventory(defines.inventory.god_quickbar).insert("steel-plate") -- inserts into player main
game.player.get_inventory(defines.inventory.god_main).insert("steel-plate") -- inserts into player quickbar
game.print(game.player.get_inventory(defines.inventory.god_quickbar).index == defines.inventory.player_main) -- true
as a god controller:
game.player.get_inventory(defines.inventory.player_quickbar).insert("steel-plate") -- inserts into god main
game.player.get_inventory(defines.inventory.player_main).insert("steel-plate") -- inserts into god quickbar
game.print(game.player.get_inventory(defines.inventory.player_quickbar).index == defines.inventory.god_main) -- true
I'd expect if you put something in the player quickbar as a god, it would either go in the god quickbar or throw an error. I like that when a player doesn't have an inventory you guys fallback to an available one, but they're all mismatched :p such a minor bug
as a character controller:
game.player.get_inventory(defines.inventory.god_quickbar).insert("steel-plate") -- inserts into player main
game.player.get_inventory(defines.inventory.god_main).insert("steel-plate") -- inserts into player quickbar
game.print(game.player.get_inventory(defines.inventory.god_quickbar).index == defines.inventory.player_main) -- true
as a god controller:
game.player.get_inventory(defines.inventory.player_quickbar).insert("steel-plate") -- inserts into god main
game.player.get_inventory(defines.inventory.player_main).insert("steel-plate") -- inserts into god quickbar
game.print(game.player.get_inventory(defines.inventory.player_quickbar).index == defines.inventory.god_main) -- true
I'd expect if you put something in the player quickbar as a god, it would either go in the god quickbar or throw an error. I like that when a player doesn't have an inventory you guys fallback to an available one, but they're all mismatched :p such a minor bug