touch routine adjust

master
Alexsandro Percy 2021-12-07 10:47:54 -03:00
parent bab70f6400
commit 6431fed50b
1 changed files with 1 additions and 1 deletions

View File

@ -307,7 +307,7 @@ function supercub.testImpact(self, velocity, position)
end
end
if impact > 1.2 then
if impact > 1.2 and self._longit_speed > 2 then
local noded = mobkit.nodeatpos(mobkit.pos_shift(p,{y=-2.8}))
if (noded and noded.drawtype ~= 'airlike') then
minetest.sound_play("supercub_touch", {