1
0
mirror of https://codeberg.org/tenplus1/mobs_redo.git synced 2024-12-24 17:50:21 +01:00

jump sound only played when mob is moving, not when stuck

This commit is contained in:
TenPlus1 2018-01-22 21:18:28 +00:00
parent 5e238b168c
commit 7d0a91936a

View File

@ -3,7 +3,7 @@
mobs = {} mobs = {}
mobs.mod = "redo" mobs.mod = "redo"
mobs.version = "20180118" mobs.version = "20180122"
-- Intllib -- Intllib
@ -744,7 +744,9 @@ local do_jump = function(self)
self.object:setvelocity(v) self.object:setvelocity(v)
if get_velocity(self) > 0 then
mob_sound(self, self.sounds.jump) mob_sound(self, self.sounds.jump)
end
else else
self.facing_fence = true self.facing_fence = true
end end