mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-20 14:23:16 -04:00
Fix indentation
This commit is contained in:
parent
3b75e7fef3
commit
07ff43fca0
1 changed files with 8 additions and 10 deletions
|
@ -116,7 +116,7 @@ local function update_weather(players)
|
||||||
-- small scattered clouds at extreme low humidity.
|
-- small scattered clouds at extreme low humidity.
|
||||||
density = density,
|
density = density,
|
||||||
thickness = math.max(math.floor(
|
thickness = math.max(math.floor(
|
||||||
rangelim(32 * humid / 100, 8, 32) * n_thickness
|
rangelim(32 * humid / 100, 8, 32) * n_thickness
|
||||||
), 2),
|
), 2),
|
||||||
speed = {x = n_speedx * 4, z = n_speedz * 4},
|
speed = {x = n_speedx * 4, z = n_speedz * 4},
|
||||||
}
|
}
|
||||||
|
@ -155,14 +155,12 @@ local function purge_effects()
|
||||||
-- reset changed player tables to default values
|
-- reset changed player tables to default values
|
||||||
for _, player in ipairs(minetest.get_connected_players()) do
|
for _, player in ipairs(minetest.get_connected_players()) do
|
||||||
if randomize_clouds then
|
if randomize_clouds then
|
||||||
player:set_clouds({})
|
player:set_clouds({})
|
||||||
end
|
end
|
||||||
-- NOTE: set_lighting doesn't allow empty table to reset
|
-- NOTE: set_lighting doesn't allow empty table to reset
|
||||||
player:set_lighting({
|
player:set_lighting({
|
||||||
shadows = {
|
shadows = { intensity = 0 }
|
||||||
intensity = 0
|
})
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -185,7 +183,7 @@ end
|
||||||
weather.set_enabled = function(enable)
|
weather.set_enabled = function(enable)
|
||||||
if enable and not is_enabled then
|
if enable and not is_enabled then
|
||||||
-- restart stopped update cycle
|
-- restart stopped update cycle
|
||||||
cyclic_update()
|
cyclic_update()
|
||||||
elseif not enable and is_enabled then
|
elseif not enable and is_enabled then
|
||||||
-- stop update cycle and remove effects
|
-- stop update cycle and remove effects
|
||||||
purge_effects()
|
purge_effects()
|
||||||
|
|
Loading…
Add table
Reference in a new issue