mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-28 13:45:32 +01:00
Ignore placing of Glass Bottle, see #2096
This commit is contained in:
parent
60368fddd9
commit
3d8179f55d
@ -163,6 +163,9 @@ public class ItemListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isAllowedBrewingAction(final InventoryClickEvent event) {
|
public boolean isAllowedBrewingAction(final InventoryClickEvent event) {
|
||||||
|
if (event.getCursor() != null && event.getCursor().getType().equals(Material.GLASS_BOTTLE)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
final int slot = event.getRawSlot();
|
final int slot = event.getRawSlot();
|
||||||
final InventoryAction action = event.getAction();
|
final InventoryAction action = event.getAction();
|
||||||
// Prevent shift-click into Brewing Stand
|
// Prevent shift-click into Brewing Stand
|
||||||
|
Loading…
Reference in New Issue
Block a user