Ignore placing of Glass Bottle, see #2096

This commit is contained in:
PikaMug 2023-04-30 16:22:36 -04:00
parent 60368fddd9
commit 3d8179f55d

View File

@ -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