summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-01-22 21:18:28 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-01-22 21:18:28 +0000
commit7d0a91936ab72601f116e59dda63122750bb1eb8 (patch)
tree61e41a3129624f4f608c0f58e2f10d5ac9359cf4
parent5e238b168ce36e1dfe40149eb6722e2d3b498b54 (diff)
jump sound only played when mob is moving, not when stuck
-rw-r--r--api.lua4
1 files changed, 3 insertions, 1 deletions
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