From b2ae7f9c8b3f8d526124477466c74a14b3b7612d Mon Sep 17 00:00:00 2001 From: SX Date: Thu, 13 Feb 2020 01:21:08 +0200 Subject: [PATCH] Fix unified inventory killer --- 3d_armor_stand/depends.txt | 1 + 3d_armor_stand/init.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/3d_armor_stand/depends.txt b/3d_armor_stand/depends.txt index 2e04ab2..022d01c 100644 --- a/3d_armor_stand/depends.txt +++ b/3d_armor_stand/depends.txt @@ -2,3 +2,4 @@ shields? unified_inventory? inventory_plus? +sfinv? diff --git a/3d_armor_stand/init.lua b/3d_armor_stand/init.lua index 1111844..8dd4f47 100644 --- a/3d_armor_stand/init.lua +++ b/3d_armor_stand/init.lua @@ -5,7 +5,7 @@ local S = armor_i18n.gettext local inventory_update if minetest.global_exists("unified_inventory") then inventory_update = function(player) - local page = unified_inventory.current_page[name] + local page = unified_inventory.current_page[player:get_player_name()] unified_inventory.set_inventory_formspec(player, "armor") unified_inventory.get_formspec(player, "armor") unified_inventory.set_inventory_formspec(player, page)