From d7a87a515b6ccf9dae8e052e902abc2caff2a4bd Mon Sep 17 00:00:00 2001 From: stujones11 Date: Wed, 26 Jun 2013 22:55:55 +0100 Subject: [PATCH] Only load formspec when armor inventory selected --- 3d_armor/armor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 2fa92c2..63f532a 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -94,8 +94,8 @@ end minetest.register_on_player_receive_fields(function(player, formname, fields) local name = player:get_player_name() - local formspec = armor.formspec:gsub("player_name", name) if fields.armor then + local formspec = armor.formspec:gsub("player_name", name) inventory_plus.set_inventory_formspec(player, formspec) return end