From c0ce2ea3a13962267190638148a9644bdf5c4133 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Tue, 14 Aug 2012 18:28:00 -0500 Subject: [PATCH] Use correct SlotType's for merchants. Fixes BUKKIT-2257 By: feildmaster --- .../bukkit/craftbukkit/inventory/CraftInventoryView.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java index 95eb616381..61e83a84d2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java @@ -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 }