From ee474237d5e0720fa68c61ad1f0455bc3426af47 Mon Sep 17 00:00:00 2001 From: Grzybol Date: Fri, 5 Apr 2024 01:53:28 +0200 Subject: [PATCH] - fix --- pom.xml | 2 +- .../java/betterbox/mine/game/betterelo/Event.java | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 590c9dc..bd594a8 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ betterbox.mine.game BetterElo - 4.0.6-SNAPSHOT + 4.0.7-SNAPSHOT jar BetterElo diff --git a/src/main/java/betterbox/mine/game/betterelo/Event.java b/src/main/java/betterbox/mine/game/betterelo/Event.java index b78e8bd..c64b86a 100644 --- a/src/main/java/betterbox/mine/game/betterelo/Event.java +++ b/src/main/java/betterbox/mine/game/betterelo/Event.java @@ -486,12 +486,13 @@ public void onPlayerInteract(PlayerInteractEvent event) { return; } } - pluginLogger.log(PluginLogger.LogLevel.ZEPHYR, "Event.checking canUseZephyr"); - if(canUseZephyr(player)) { - pluginLogger.log(PluginLogger.LogLevel.ZEPHYR, "Event.canUseZephyr passed"); - hasZephyrLore(player); - } + } + pluginLogger.log(PluginLogger.LogLevel.ZEPHYR, "Event.checking canUseZephyr"); + if(canUseZephyr(player) && event.getAction() != Action.RIGHT_CLICK_AIR) { + pluginLogger.log(PluginLogger.LogLevel.ZEPHYR, "Event.canUseZephyr passed"); + hasZephyrLore(player); + }