Set inventory mod to main page on die player

This commit is contained in:
stujones11 2014-04-18 00:12:38 +01:00
parent ecfd397d77
commit eedf913638
1 changed files with 8 additions and 1 deletions

View File

@ -392,7 +392,14 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
end
end
armor:set_player_armor(player)
armor:update_inventory(player)
if unified_inventory then
unified_inventory.set_inventory_formspec(player, "craft")
elseif inventory_plus then
local formspec = inventory_plus.get_formspec(player,"main")
inventory_plus.set_inventory_formspec(player, formspec)
else
armor:update_inventory(player)
end
if ARMOR_DESTROY == false then
if minetest.get_modpath("bones") then
minetest.after(ARMOR_BONES_DELAY, function()