From 2e77f408c355bebd1d6332a75c691d313358a10d Mon Sep 17 00:00:00 2001 From: Zoey Date: Sat, 20 Jan 2024 02:00:44 +0100 Subject: [PATCH] Update EntityDamageByEntityListener.java Signed-off-by: Zoey --- .../zoeyvid/stacker/Listener/EntityDamageByEntityListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/zoeyvid/stacker/Listener/EntityDamageByEntityListener.java b/src/main/java/de/zoeyvid/stacker/Listener/EntityDamageByEntityListener.java index df68df4..6f5e970 100644 --- a/src/main/java/de/zoeyvid/stacker/Listener/EntityDamageByEntityListener.java +++ b/src/main/java/de/zoeyvid/stacker/Listener/EntityDamageByEntityListener.java @@ -16,7 +16,7 @@ public void onEntityDamageByEntity(EntityDamageByEntityEvent event) { if(!player.isEmpty() && loadConfig.throwable()) { event.setCancelled(true); Player passenger = (Player) player.getPassengers().get(0); - getVelocity.put(passenger, player.getEyeLocation().getDirection().setY(1)); + main.getVelocity.put(passenger, player.getEyeLocation().getDirection().setY(1)); player.eject(); } }