From ef89de6c2eff6bc36ff01d67e4aae2624f318f93 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Wed, 8 Apr 2015 11:28:52 +0100 Subject: [PATCH] fixed follow jump glitch --- api.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.lua b/api.lua index 8d6cb92..82f6cf4 100644 --- a/api.lua +++ b/api.lua @@ -278,7 +278,7 @@ footstep = def.footstep, or minetest.registered_nodes[nod.name].walkable == false then return end local v = self.object:getvelocity() v.y = self.jump_height - if self.following then v.y = v.y + 0.5 end + if self.following then v.y = v.y + 1 end self.object:setvelocity(v) if self.sounds.jump then minetest.sound_play(self.sounds.jump, {object = self.object})