snowdrift: reset sky to normal when player goes up
This commit is contained in:
parent
9643e20e90
commit
3dc21dda1a
@ -279,11 +279,15 @@ minetest.register_globalstep(function(dtime)
|
||||
end
|
||||
end
|
||||
|
||||
elseif handles[player_name] then
|
||||
-- Stop sound when player goes above y limit
|
||||
minetest.sound_stop(handles[player_name])
|
||||
handles[player_name] = nil
|
||||
volumes[player_name] = nil
|
||||
else
|
||||
-- Reset sky to normal
|
||||
player:set_sky({}, "regular", {}, true)
|
||||
if handles[player_name] then
|
||||
-- Stop sound when player goes above y limit
|
||||
minetest.sound_stop(handles[player_name])
|
||||
handles[player_name] = nil
|
||||
volumes[player_name] = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
Loading…
x
Reference in New Issue
Block a user