mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2024-12-24 01:12:23 +01:00
Merge pull request #44 from proller/patch-1
Dont rewrite inventory in creative mode
This commit is contained in:
commit
0d5cf6d58a
@ -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