diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-01-22 21:18:28 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-01-22 21:18:28 +0000 |
commit | 7d0a91936ab72601f116e59dda63122750bb1eb8 (patch) | |
tree | 61e41a3129624f4f608c0f58e2f10d5ac9359cf4 | |
parent | 5e238b168ce36e1dfe40149eb6722e2d3b498b54 (diff) |
jump sound only played when mob is moving, not when stuck
-rw-r--r-- | api.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |