From fda2638011fc724525501cba4e56f4017b236f0f Mon Sep 17 00:00:00 2001 From: Zoey Date: Sat, 20 Jan 2024 02:02:22 +0100 Subject: [PATCH] Update PlayerMoveListener.java Signed-off-by: Zoey --- .../java/de/zoeyvid/stacker/Listener/PlayerMoveListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/zoeyvid/stacker/Listener/PlayerMoveListener.java b/src/main/java/de/zoeyvid/stacker/Listener/PlayerMoveListener.java index d9d0195..5cd1646 100644 --- a/src/main/java/de/zoeyvid/stacker/Listener/PlayerMoveListener.java +++ b/src/main/java/de/zoeyvid/stacker/Listener/PlayerMoveListener.java @@ -14,8 +14,8 @@ public class PlayerMoveListener implements Listener { @EventHandler public void onPlayerMove(PlayerMoveEvent event) { Player player = event.getPlayer(); - if(main.getVelocity.containsKey(player)) { - player.setVelocity(main.getVelocity.get(player)); + if(main.getVelocity().containsKey(player)) { + player.setVelocity(main.getVelocity().get(player)); main.getThrown().add(passenger); } if(loadConfig.throwfalldamage()) {