1
0
mirror of https://github.com/minetest-mods/3d_armor.git synced 2024-12-26 18:50:40 +01:00

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

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