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
1 changed files with 3 additions and 1 deletions

View File

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