From fbc341b0bd8550a8edc3ed62d132230c2a15e4d2 Mon Sep 17 00:00:00 2001 From: runs Date: Tue, 26 Jan 2021 12:19:12 +0100 Subject: [PATCH] fixes --- climatez.conf | 4 ++-- engine.lua | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/climatez.conf b/climatez.conf index 7efea35..65c5b94 100644 --- a/climatez.conf +++ b/climatez.conf @@ -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 diff --git a/engine.lua b/engine.lua index 6aef294..99c6bb6 100644 --- a/engine.lua +++ b/engine.lua @@ -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)