mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-26 03:07:32 +01:00
Add missing check
This commit is contained in:
parent
65d33b935a
commit
5c5c405ccf
@ -13,7 +13,7 @@ function mcl_item_id.set_mod_namespace(modname, namespace)
|
|||||||
if item_split then
|
if item_split then
|
||||||
local id_modname = item:sub(1, item_split - 1)
|
local id_modname = item:sub(1, item_split - 1)
|
||||||
local id_string = item:sub(item_split)
|
local id_string = item:sub(item_split)
|
||||||
if id_modname == modname then
|
if id_modname == modname and modname ~= namespace then
|
||||||
minetest.register_alias_force(namespace .. id_string, item)
|
minetest.register_alias_force(namespace .. id_string, item)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user