From 6d21d3ddd18c8b61423525cbe2af7c7138e0d9e3 Mon Sep 17 00:00:00 2001 From: bell07 Date: Sun, 24 Dec 2017 15:49:53 +0100 Subject: [PATCH] avoid undeclared global variable access remove warning Undeclared global variable "hw_utils" accessed at ...ds/ambience/weather_pack/utils.lua:9 --- utils.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.lua b/utils.lua index d8a6e7b..41080af 100644 --- a/utils.lua +++ b/utils.lua @@ -6,7 +6,7 @@ -- Credits: xeranas --------------------------------------- -if hw_utils == nil then +if not minetest.global_exists("hw_utils") then hw_utils = {} end