Don't add heads if overwritten

master
Wuzzy 2017-07-26 00:22:07 +02:00
parent e9c5dfc303
commit 04af91e872
1 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,9 @@ if minetest.get_modpath("default") then
end
local function addhead(mobname, desc, longdesc)
if not mobs_mc.is_item_variable_overridden("head_"..mobname) then
return
end
minetest.register_node("mobs_mc:head_"..mobname, {
description = desc,
_doc_items_longdesc = longdesc,