fixes
parent
aed9c97a4e
commit
fbc341b0bd
|
@ -2,11 +2,11 @@
|
|||
climate_min_height = -10
|
||||
#Chance of the a new volume climate to be created
|
||||
##in seconds
|
||||
climate_change_ratio = 1200
|
||||
climate_change_ratio = 5
|
||||
#Volume of the regional climates (sphere)
|
||||
climate_radius = 80
|
||||
#Average time of the climate
|
||||
climate_duration = 120
|
||||
climate_duration = 5
|
||||
#Random deviation for the duration
|
||||
climate_duration_random_ratio = 0.45
|
||||
#Sounds
|
||||
|
|
|
@ -232,7 +232,9 @@ local function apply_climate(player, climate_id)
|
|||
remove_climate_player(player)
|
||||
return
|
||||
end
|
||||
local downfall = climatez.registered_downfalls[climate.downfall]
|
||||
local player_name = player:get_player_name()
|
||||
local player_downfall = climatez.players[player_name].downfall
|
||||
local downfall = climatez.registered_downfalls[player_downfall]
|
||||
local wind = climate.wind
|
||||
local wind_pos = vector.multiply(wind, -1)
|
||||
local minp = vector.add(vector.add(player_pos, downfall.min_pos), wind_pos)
|
||||
|
|
Loading…
Reference in New Issue