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
1 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,9 @@ public class ItemListener implements Listener {
}
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 InventoryAction action = event.getAction();
// Prevent shift-click into Brewing Stand