mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +01:00
Merge pull request 'Sky Strobe Band-aid Fix' (#3538) from temporary_snow_disablement into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/3538 Reviewed-by: ancientmarinerdev <ancientmariner_dev@proton.me>
This commit is contained in:
commit
9697591dd6
1 changed files with 0 additions and 29 deletions
|
@ -102,35 +102,6 @@ function mcl_weather.snow.add_player(player)
|
|||
end
|
||||
end
|
||||
|
||||
local timer = 0
|
||||
minetest.register_globalstep(function(dtime)
|
||||
if mcl_weather.state ~= "snow" then
|
||||
return false
|
||||
end
|
||||
|
||||
timer = timer + dtime;
|
||||
if timer >= 0.5 then
|
||||
timer = 0
|
||||
else
|
||||
return
|
||||
end
|
||||
|
||||
if mcl_weather.snow.init_done == false then
|
||||
mcl_weather.snow.set_sky_box()
|
||||
mcl_weather.snow.init_done = true
|
||||
end
|
||||
|
||||
for _, player in pairs(get_connected_players()) do
|
||||
if mcl_weather.is_underwater(player) or not mcl_weather.has_snow(player:get_pos()) then
|
||||
mcl_weather.remove_spawners_player(player)
|
||||
mcl_weather.set_sky_box_clear(player)
|
||||
else
|
||||
mcl_weather.snow.add_player(player)
|
||||
mcl_weather.snow.set_sky_box()
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
-- register snow weather
|
||||
if mcl_weather.reg_weathers.snow == nil then
|
||||
mcl_weather.reg_weathers.snow = {
|
||||
|
|
Loading…
Reference in a new issue