forked from mtcontrib/3d_armor
Set inventory mod to main page on die player
This commit is contained in:
parent
ecfd397d77
commit
eedf913638
|
@ -392,7 +392,14 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
armor:set_player_armor(player)
|
armor:set_player_armor(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)
|
armor:update_inventory(player)
|
||||||
|
end
|
||||||
if ARMOR_DESTROY == false then
|
if ARMOR_DESTROY == false then
|
||||||
if minetest.get_modpath("bones") then
|
if minetest.get_modpath("bones") then
|
||||||
minetest.after(ARMOR_BONES_DELAY, function()
|
minetest.after(ARMOR_BONES_DELAY, function()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user