From d1458c0a7849b815d68a34932a4e1309e3fec372 Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Sat, 22 Oct 2022 18:02:28 +0000 Subject: [PATCH] hardcode 8 velocity --- the_bridge.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/the_bridge.lua b/the_bridge.lua index d0555a0..ab8123b 100644 --- a/the_bridge.lua +++ b/the_bridge.lua @@ -206,7 +206,7 @@ minetest.register_craftitem("the_bridge:knockback_stick",{ if not minetest.is_player(pointed_thing.ref) then return end dir = user:get_look_dir() vel_vector = vector.multiply(dir,12) - vel_vector.y = (dir.y+1)*8 + vel_vector.y = 8 --hardcoded so you cant launch a player up like 20 blocks pointed_thing.ref:add_player_velocity(vel_vector) end, })