Identify outside slot independent of inventory type. Fixes BUKKIT-2768
By: EdGruberman <ed@rjump.com>
This commit is contained in:
@@ -75,7 +75,7 @@ public class CraftInventoryView extends InventoryView {
|
||||
|
||||
public static SlotType getSlotType(InventoryView inventory, int slot) {
|
||||
SlotType type = SlotType.CONTAINER;
|
||||
if (slot < inventory.getTopInventory().getSize()) {
|
||||
if (slot >= 0 && slot < inventory.getTopInventory().getSize()) {
|
||||
switch(inventory.getType()) {
|
||||
case FURNACE:
|
||||
if (slot == 2) {
|
||||
|
||||
Reference in New Issue
Block a user