Skip to content

Commit

Permalink
Update EntityDamageByEntityListener.java
Browse files Browse the repository at this point in the history
Signed-off-by: Zoey <[email protected]>
  • Loading branch information
Zoey2936 authored Jan 18, 2024
1 parent 7bf9b13 commit f45f5b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
event.setCancelled(true);
Player passenger = (Player) player.getPassengers().get(0);
player.eject();
// passenger.setVelocity(player.getEyeLocation().getDirection().setY(1));
passenger.setVelocity(player.getEyeLocation().getDirection().setY(1));
// passenger.setFallDistance(0f);
}
}
Expand Down

0 comments on commit f45f5b3

Please sign in to comment.