bugfix
This commit is contained in:
parent
6c4ef3d96a
commit
4b88dfe7b7
|
@ -205,7 +205,8 @@ minetest.register_craftitem("the_bridge:knockback_stick",{
|
|||
if not pointed_thing then return end
|
||||
if not minetest.is_player(pointed_thing.ref) then return end
|
||||
dir = user:get_look_dir()
|
||||
dir.y = dir.y+1
|
||||
pointed_thing.ref:add_player_velocity(vector.multiply(dir,16))
|
||||
vel_vector = vector.multiply(dir,16)
|
||||
vel_vector.y = (dir.y+1)*8
|
||||
pointed_thing.ref:add_player_velocity(vel_vector)
|
||||
end,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue