- weather_update_timer = weather_update_timer + dtime
- if weather_update_timer >= 0.5 then
- weather_update_timer = 0
- --do normal weather
- if player_pos.y > -10033 then
- if snow == true then
- spawn_snow(minetest.localplayer)
- elseif rain == true then
- spawn_rain(minetest.localplayer)
- end
- --rain blood upwards in the nether
- else
- if snow == true or rain == true then
- spawn_ichor(minetest.localplayer)
- end
-
- --stop the rain sound effect
- if rain_sound_handle then
- minetest.sound_fade(rain_sound_handle, -0.5, 0)
- rain_sound_handle = nil
- end
+ --do normal weather
+ if player_pos.y > -10033 then
+ if snow == true then
+ spawn_snow(minetest.localplayer)
+ elseif rain == true then
+ spawn_rain(minetest.localplayer)
+ end
+ --rain blood upwards in the nether
+ else
+ if snow == true or rain == true then
+ spawn_ichor(minetest.localplayer)
+ end
+
+ --stop the rain sound effect
+ if rain_sound_handle then
+ minetest.sound_fade(rain_sound_handle, -0.5, 0)
+ rain_sound_handle = nil