forked from mtcontrib/mobs_redo
jump sound only played when mob is moving, not when stuck
This commit is contained in:
parent
5e238b168c
commit
7d0a91936a
4
api.lua
4
api.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user