drift sound adjusted

This commit is contained in:
Alexsandro Percy 2023-05-17 19:36:08 -03:00
parent bd86860267
commit cbccd7ad78
1 changed files with 1 additions and 1 deletions

View File

@ -663,7 +663,7 @@ minetest.register_entity("automobiles_trans_am:trans_am", {
local noded = automobiles_lib.nodeatpos(automobiles_lib.pos_shift(curr_pos,{y=-0.5}))
if (noded and noded.drawtype ~= 'airlike') then
if noded.drawtype ~= 'liquid' then
local min_later_speed = 2.5
local min_later_speed = 4.5
if (later_speed > min_later_speed or later_speed < -min_later_speed) and
self._last_time_drift_snd >= 2.0 then
self._last_time_drift_snd = 0