forked from mtcontrib/3d_armor
Dont rewrite inventory in creative mode
happens on first press I if no unified inventory installed
This commit is contained in:
parent
f83e7e9984
commit
f17a104ab1
@ -281,7 +281,7 @@ armor.update_inventory = function(self, player)
|
|||||||
if page:find("detached:"..name.."_armor") then
|
if page:find("detached:"..name.."_armor") then
|
||||||
inventory_plus.set_inventory_formspec(player, formspec)
|
inventory_plus.set_inventory_formspec(player, formspec)
|
||||||
end
|
end
|
||||||
else
|
elseif not core.setting_getbool("creative_mode") then
|
||||||
player:set_inventory_formspec(formspec)
|
player:set_inventory_formspec(formspec)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user