Skip to content

setVelocity bug in 1.21.10 #13270

@justin0-0

Description

@justin0-0

Expected behavior

The method setVelocity does not work like before for players. In 1.21.8 the method worked like usual but in 1.21.10 newest Build (#100) the player sometimes doesn't get launched or launched extremly far into the air. I test it with this setup with the paper 1.21.10 and 1.21.8 api aswell as on the paper 1.21.8 server and lower and on the 1.21.10 newest server build. On other pcs its the same problem with the same plugin so i would think its a spigot/paper bug. Somehow the method works well for values of 1-10 in the y direction but for 100 it does not work anymore.

@EventHandler
public void hit(BlockPlaceEvent event) {
    System.out.println("1");
    event.getPlayer().setVelocity(new Vector(0, 100 ,0));
}

Observed/Actual behavior

...

Steps/models to reproduce

...

Plugin and Datapack List

...

Paper version

1.21.10 build #100

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions