mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-18 20:26:42 -04:00
Weather temps update
This commit is contained in:
parent
9df85d7752
commit
bcefc5a7ba
3 changed files with 14 additions and 10 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue