diff --git a/weather/api.lua b/weather/api.lua index 09cb46e..40af408 100644 --- a/weather/api.lua +++ b/weather/api.lua @@ -9,7 +9,7 @@ local function check_modname_prefix(name) -- Enforce that the name starts with the correct mod name. local modname = minetest.get_current_modname() if modname == nil then - modname="journal" + modname=name:split(":")[1] end local expected_prefix = modname .. ":" if name:sub(1, #expected_prefix) ~= expected_prefix then