forked from mtcontrib/minetest-mod-snow
Fix weather_legacy error.
falling_snow.lua:7: bad argument #1 to 'write' (string expected, got nil)
This commit is contained in:
parent
7db04ee476
commit
999afab1e4
@ -4,7 +4,7 @@ if snow.enable_snowfall then
|
|||||||
--Weather for legacy versions of minetest.
|
--Weather for legacy versions of minetest.
|
||||||
local save_weather_legacy = function ()
|
local save_weather_legacy = function ()
|
||||||
local file = io.open(minetest.get_worldpath().."/weather_v6", "w+")
|
local file = io.open(minetest.get_worldpath().."/weather_v6", "w+")
|
||||||
file:write(weather_legacy)
|
file:write(tostring(weather_legacy))
|
||||||
file:close()
|
file:close()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user