mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Correct formatting of #1619
This commit is contained in:
parent
fcad9600cd
commit
dd270283fc
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user