Correct formatting of #1619

This commit is contained in:
PikaMug 2021-02-22 22:11:51 -05:00
parent fcad9600cd
commit dd270283fc

View File

@ -94,8 +94,8 @@ public class PlayerListener implements Listener {
evt.setCancelled(true); evt.setCancelled(true);
return; return;
} }
} else if (ac.equals(InventoryAction.SWAP_WITH_CURSOR))) { } else if (ac.equals(InventoryAction.SWAP_WITH_CURSOR)) {
ItemStack item=evt.getWhoClicked().getInventory().getItem(event.getHotbarButton()); final ItemStack item = evt.getWhoClicked().getInventory().getItem(evt.getHotbarButton());
if (item != null) { if (item != null) {
if (ItemUtil.isItem(item) && ItemUtil.isJournal(item)) { if (ItemUtil.isItem(item) && ItemUtil.isJournal(item)) {
evt.setCancelled(true); evt.setCancelled(true);