hardcode 8 velocity

This commit is contained in:
chmodsayshello 2022-10-22 18:02:28 +00:00
parent 214a7c84a6
commit d1458c0a78
1 changed files with 1 additions and 1 deletions

View File

@ -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,
})