From 9c251595d4f3a3096ff2410d1ef2e35da47e9ecf Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 10 Feb 2014 11:26:42 -0500 Subject: [Bleeding] Return correct furnace SlotType. Fixes BUKKIT-5400 Previously, the SlotType for the 0 slot in a furnace returned CONTAINER, when it should have returned SlotType.CRAFTING. This updates the code for determining slot type to return the proper value. --- src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main') diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java index 6bc7b0e6..8925e601 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java @@ -82,6 +82,8 @@ public class CraftInventoryView extends InventoryView { type = SlotType.RESULT; } else if(slot == 1) { type = SlotType.FUEL; + } else { + type = SlotType.CRAFTING; } break; case BREWING: -- cgit v1.2.3