diff options
-rw-r--r-- | src/main/java/org/bukkit/event/inventory/CraftItemEvent.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java b/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java index aceea83c..264ab0a9 100644 --- a/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java +++ b/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java @@ -1,6 +1,7 @@ package org.bukkit.event.inventory; import org.bukkit.event.inventory.InventoryType.SlotType; +import org.bukkit.inventory.CraftingInventory; import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.Recipe; @@ -18,4 +19,9 @@ public class CraftItemEvent extends InventoryClickEvent { public Recipe getRecipe() { return recipe; } + + @Override + public CraftingInventory getInventory() { + return (CraftingInventory) super.getInventory(); + } } |