diff --git a/paper-api/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java b/paper-api/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java index aceea83cb5..264ab0a956 100644 --- a/paper-api/src/main/java/org/bukkit/event/inventory/CraftItemEvent.java +++ b/paper-api/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(); + } }