Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Snabeldier committed Jan 26, 2025
1 parent 30fff62 commit 488a2bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ public HandlerList getHandlers() {
public void setCancelled(boolean cancel) {
this.cancelled = true;
event.setCancelled(true);
user.getPlayer().setVelocity(event.getFrom().toVector().subtract(event.getTo().toVector()));
user.player().setVelocity(event.getFrom().toVector().subtract(event.getTo().toVector()));
}
}

0 comments on commit 488a2bb

Please sign in to comment.