mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
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 = {}
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user