mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 18:41:09 +01:00
Add missing check
This commit is contained in:
parent
65d33b935a
commit
5c5c405ccf
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ function mcl_item_id.set_mod_namespace(modname, namespace)
|
|||
if item_split then
|
||||
local id_modname = item:sub(1, item_split - 1)
|
||||
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)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue