Weather temps update

This commit is contained in:
proller 2013-08-25 15:33:29 +04:00
parent 9df85d7752
commit bcefc5a7ba
3 changed files with 14 additions and 10 deletions

View file

@ -139,6 +139,10 @@ minetest.register_abm({
if not light or light < 13 then
return
end
if minetest.setting_getbool("weather") and minetest.get_heat(pos) < 5 then
return
end
local pos0 = {x=pos.x-4,y=pos.y-4,z=pos.z-4}
local pos1 = {x=pos.x+4,y=pos.y+4,z=pos.z+4}