From aff4e768cdd99fd11ca154ca1522cdcd5a4b134a Mon Sep 17 00:00:00 2001 From: oilboi <47129783+oilboi@users.noreply.github.com> Date: Thu, 9 Apr 2020 16:09:25 -0400 Subject: [PATCH] Adjust timer for bunnyhopping to avoid overlap --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index c1a4c55..2c07ade 100644 --- a/init.lua +++ b/init.lua @@ -80,18 +80,18 @@ minetest.register_globalstep(function(dtime) sneak = true end + --count down bunny hop state if bunny_hop_timer > 0 then bunny_hop_timer = bunny_hop_timer - dtime if bunny_hop_timer <= 0 then bunny_hop_timer = 0 end - print(bunny_hop_timer) end --check if need to tell server to bunnyhop if running == true and vel > 0 and bunny_hop_timer == 0 then send_server_movement_state("2") - bunny_hop_timer = 0.6 + bunny_hop_timer = 0.3 elseif bunny_hop_timer == 0 then bunny_hopping = false if running == true then -- 2.44.0