diff options
author | GJ <gjmcferrin@gmail.com> | 2014-02-10 11:26:42 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2014-04-18 10:01:24 -0500 |
commit | 9c251595d4f3a3096ff2410d1ef2e35da47e9ecf (patch) | |
tree | d1bb6201479030b9f657f03bc45a2f3ed20ea48d /src/main | |
parent | ec41228fb50721e80470ee3253a30d16bb0a8a86 (diff) | |
download | craftbukkit-9c251595d4f3a3096ff2410d1ef2e35da47e9ecf.tar craftbukkit-9c251595d4f3a3096ff2410d1ef2e35da47e9ecf.tar.gz craftbukkit-9c251595d4f3a3096ff2410d1ef2e35da47e9ecf.tar.lz craftbukkit-9c251595d4f3a3096ff2410d1ef2e35da47e9ecf.tar.xz craftbukkit-9c251595d4f3a3096ff2410d1ef2e35da47e9ecf.zip |
[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.
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftInventoryView.java | 2 |
1 files changed, 2 insertions, 0 deletions
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: |