From dd270283fce0aaea70671f634d2e3895e9522c66 Mon Sep 17 00:00:00 2001 From: PikaMug <2267126+PikaMug@users.noreply.github.com> Date: Mon, 22 Feb 2021 22:11:51 -0500 Subject: [PATCH] Correct formatting of #1619 --- .../me/blackvein/quests/listeners/PlayerListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java b/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java index a52ced2bd..ab13245d6 100644 --- a/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java +++ b/main/src/main/java/me/blackvein/quests/listeners/PlayerListener.java @@ -94,12 +94,12 @@ public class PlayerListener implements Listener { evt.setCancelled(true); return; } - } else if (ac.equals(InventoryAction.SWAP_WITH_CURSOR))) { - ItemStack item=evt.getWhoClicked().getInventory().getItem(event.getHotbarButton()); - if (item!=null) { + } else if (ac.equals(InventoryAction.SWAP_WITH_CURSOR)) { + final ItemStack item = evt.getWhoClicked().getInventory().getItem(evt.getHotbarButton()); + if (item != null) { if (ItemUtil.isItem(item) && ItemUtil.isJournal(item)) { evt.setCancelled(true); - return; + return; } } }