From 10e08de950c9aff317012664151620d8e7e64b5e Mon Sep 17 00:00:00 2001 From: theFox6 Date: Tue, 7 Aug 2018 10:11:27 +0200 Subject: [PATCH] fixed copied content --- weather/api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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