aboutsummaryrefslogtreecommitdiff
path: root/init.lua
blob: ac52910e94c268f64c3e84a3dba5c1edd0437c00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
minetest.register_on_spawn_particle(function(particle)
	if minetest.settings:get_bool("noweather") and particle.texture:sub(1, 12) == "weather_pack" then
		return true
	end
end)

minetest.register_on_play_sound(function(sound)
	if minetest.settings:get_bool("noweather") and sound.name == "weather_rain" then
		return true
	end
end)
 
minetest.register_cheat("NoWeather", "Render", "noweather")