cron f934733623 Merge Dragonfire
Replicate the following commit (with cherry-picked parents on left
side):

    commit be80a15bad718285fd2f24ff1fa88821e35f9388
    Merge: be8e8b906 33a69f694
    Author:     cron <example@example.local>
    AuthorDate: Wed Dec 9 20:36:09 2020 +0000
    Commit:     cron <example@example.local>
    CommitDate: Wed Dec 9 20:36:09 2020 +0000

	Merge Dragonfire
	Dragonfire commit: 56d536ea5e1f98c760d7c78a4584df043fb7f0f8
2021-08-28 23:21:04 -05:00

17 lines
525 B
Lua

core.register_list_command("xray", "Configure X-Ray", "xray_nodes")
core.register_list_command("search", "Configure NodeESP", "node_esp_nodes")
core.register_on_spawn_particle(function(particle)
if core.settings:get_bool("noweather") and particle.texture:sub(1, 12) == "weather_pack" then
return true
end
end)
core.register_on_play_sound(function(sound)
if core.settings:get_bool("noweather") and sound.name == "weather_rain" then
return true
end
end)
minetest.register_cheat("NoWeather", "Render", "noweather")