SPIGOT-1610: Treat clicking on an inventory window as clicking outside it

This commit is contained in:
Thinkofdeath 2016-03-01 23:44:22 +00:00
parent f8e38f2d9f
commit 92602ad172

View File

@ -125,7 +125,7 @@ public class CraftInventoryView extends InventoryView {
// Nothing to do, it's a CONTAINER slot // Nothing to do, it's a CONTAINER slot
} }
} else { } else {
if (slot == -999) { if (slot == -999 || slot == -1) {
type = SlotType.OUTSIDE; type = SlotType.OUTSIDE;
} else if (inventory.getType() == InventoryType.CRAFTING) { } else if (inventory.getType() == InventoryType.CRAFTING) {
if (slot < 9) { if (slot < 9) {