Use correct SlotType's for merchants. Fixes BUKKIT-2257

By: feildmaster <admin@feildmaster.com>
This commit is contained in:
CraftBukkit/Spigot 2012-08-14 18:28:00 -05:00
parent 73cf129db7
commit c0ce2ea3a1

View file

@ -102,6 +102,13 @@ public class CraftInventoryView extends InventoryView {
type = SlotType.CRAFTING;
}
break;
case MERCHANT:
if (slot == 2) {
type = SlotType.RESULT;
} else {
type = SlotType.CRAFTING;
}
break;
default:
// Nothing to do, it's a CONTAINER slot
}