climate_api/lib/datastorage.lua

13 lines
220 B
Lua
Raw Normal View History

2020-04-13 01:55:39 +02:00
local state = minetest.get_mod_storage()
2020-05-12 16:00:24 +02:00
if not state:contains("heat_random") then
state:from_table({
heat_random = 1,
humidity_random = 1,
humidity_base = 50,
wind_x = 0.5,
2020-05-12 16:00:24 +02:00
wind_z = 0.5
})
end
2020-04-13 01:55:39 +02:00
return state