Dont rewrite inventory in creative mode

happens on first press I if no unified inventory installed
This commit is contained in:
proller 2016-02-07 18:46:37 +03:00
parent f83e7e9984
commit f17a104ab1

View File

@ -281,7 +281,7 @@ armor.update_inventory = function(self, player)
if page:find("detached:"..name.."_armor") then
inventory_plus.set_inventory_formspec(player, formspec)
end
else
elseif not core.setting_getbool("creative_mode") then
player:set_inventory_formspec(formspec)
end
end