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 20, 2024
1 parent fda2638 commit 547d67a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void onEntityDamageByEntity(EntityDamageByEntityEvent event) {
if(!player.isEmpty() && loadConfig.throwable()) {
event.setCancelled(true);
Player passenger = (Player) player.getPassengers().get(0);
main.getVelocity.put(passenger, player.getEyeLocation().getDirection().setY(1));
main.getVelocity().put(passenger, player.getEyeLocation().getDirection().setY(1));
player.eject();
}
}
Expand Down

0 comments on commit 547d67a

Please sign in to comment.