mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-23 00:13:13 +09:00
Fix accessing main inventory when in map view
This commit is contained in:
1 file changed
+1
-1
@@ -203,7 +203,7 @@ function serialize.serialize_crafting_queue(player)
|
|||||||
player.character_inventory_slots_bonus = player.character_inventory_slots_bonus + 1000
|
player.character_inventory_slots_bonus = player.character_inventory_slots_bonus + 1000
|
||||||
|
|
||||||
-- Save current items
|
-- Save current items
|
||||||
local inventory = player.get_main_inventory()
|
local inventory = player.character.get_main_inventory()
|
||||||
local old_items = inventory.get_contents()
|
local old_items = inventory.get_contents()
|
||||||
local crafting_queue_progress = player.crafting_queue_progress
|
local crafting_queue_progress = player.crafting_queue_progress
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user