Fix weather_legacy error.

falling_snow.lua:7: bad argument #1 to 'write' (string expected, got
nil)
This commit is contained in:
Splizard 2013-08-07 05:06:41 +00:00
parent 7db04ee476
commit 999afab1e4

View File

@ -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