mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-11-29 23:43:42 +01:00
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)
|
||||||
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 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