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,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;
}
}
}