From 999afab1e40a644bc80125825068c7ef29e9e0a9 Mon Sep 17 00:00:00 2001 From: Splizard Date: Wed, 7 Aug 2013 05:06:41 +0000 Subject: [PATCH] Fix weather_legacy error. falling_snow.lua:7: bad argument #1 to 'write' (string expected, got nil) --- falling_snow.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/falling_snow.lua b/falling_snow.lua index fc30c6a..003a40b 100644 --- a/falling_snow.lua +++ b/falling_snow.lua @@ -4,7 +4,7 @@ if snow.enable_snowfall then --Weather for legacy versions of minetest. local save_weather_legacy = function () local file = io.open(minetest.get_worldpath().."/weather_v6", "w+") - file:write(weather_legacy) + file:write(tostring(weather_legacy)) file:close() end