From b34f4022b15f54c6f81d80b8e8eb635f93ed2ef7 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 25 Apr 2022 14:28:22 +0200 Subject: [PATCH] Update PlayerSeatListener --- src/de/steamwar/lobby/listener/PlayerSeatListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/de/steamwar/lobby/listener/PlayerSeatListener.java b/src/de/steamwar/lobby/listener/PlayerSeatListener.java index 10d8528..45113f5 100644 --- a/src/de/steamwar/lobby/listener/PlayerSeatListener.java +++ b/src/de/steamwar/lobby/listener/PlayerSeatListener.java @@ -56,6 +56,9 @@ public class PlayerSeatListener extends BasicListener{ @EventHandler public void onPlayerInteract(PlayerInteractEvent event) { + if (event.getPlayer().isGliding()) + return; + if (event.getAction() != Action.RIGHT_CLICK_BLOCK) return;