mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 16:41:06 +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
|
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 a new issue