mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 18:45:27 +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);
|
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);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user