vector.y =1
This commit is contained in:
parent
d1458c0a78
commit
b6b083af05
|
@ -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 = 8 --hardcoded so you cant launch a player up like 20 blocks
|
||||
vel_vector.y = 1 --hardcoded so you cant launch a player up like 20 blocks
|
||||
pointed_thing.ref:add_player_velocity(vel_vector)
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue