13
0
geforkt von Mirrors/Paper

Identify outside slot independent of inventory type. Fixes BUKKIT-2768

Dieser Commit ist enthalten in:
EdGruberman 2013-02-21 14:22:09 -07:00 committet von riking
Ursprung e61a6bab05
Commit e1b50b0110

Datei anzeigen

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