Merge pull request #44 from proller/patch-1

Dont rewrite inventory in creative mode
This commit is contained in:
stujones11 2016-02-08 03:54:28 +08:00
commit 0d5cf6d58a

@ -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