climate_api/lib/datastorage.lua

14 lines
239 B
Lua
Raw Normal View History

2020-04-13 01:55:39 +02:00
local state = minetest.get_mod_storage()
if not state:contains("noise_timer") then
state:from_table({
heat_random = 1,
humidity_random = 1,
humidity_base = 50,
wind_x = 0.5,
wind_z = 0.5,
2020-04-26 18:11:38 +02:00
noise_timer = 0
})
end
2020-04-13 01:55:39 +02:00
return state