Skip to content

Commit

Permalink
fix flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
naturefreshmilk committed Aug 3, 2019
1 parent dbbe823 commit e234490
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions skybox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,18 @@ skybox.update_skybox = function(player)

return
end
end

-- set default skybox
else

if current_skybox == "" then
-- already in default
return
end
-- set default skybox

skybox.set_default_skybox(player)
if current_skybox == "" then
-- already in default
return
end

skybox.set_default_skybox(player)
end
end

minetest.register_globalstep(function(dtime)
Expand Down

0 comments on commit e234490

Please sign in to comment.