From 7d0a91936ab72601f116e59dda63122750bb1eb8 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Mon, 22 Jan 2018 21:18:28 +0000 Subject: [PATCH] jump sound only played when mob is moving, not when stuck --- api.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 8cd2faa..317a8ba 100644 --- a/api.lua +++ b/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