avoid undeclared global variable access

remove warning 
Undeclared global variable "hw_utils" accessed at ...ds/ambience/weather_pack/utils.lua:9
This commit is contained in:
bell07 2017-12-24 15:49:53 +01:00 committed by GitHub
parent f8e1640b9a
commit 6d21d3ddd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@
-- Credits: xeranas
---------------------------------------
if hw_utils == nil then
if not minetest.global_exists("hw_utils") then
hw_utils = {}
end