From 18496d0c01c105bf5676c2d27b295d2310e9653d Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Wed, 27 Dec 2023 16:46:07 -0800 Subject: [PATCH] Add missing InventoryType Upstream did not add a DECORATED_POT inventory type --- .../java/org/bukkit/craftbukkit/inventory/CraftInventory.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java index bc5ec42a54..c6159c70f7 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftInventory.java @@ -529,6 +529,10 @@ public class CraftInventory implements Inventory { return InventoryType.COMPOSTER; } else if (this.inventory instanceof JukeboxBlockEntity) { return InventoryType.JUKEBOX; + // Paper start + } else if (this.inventory instanceof net.minecraft.world.level.block.entity.DecoratedPotBlockEntity) { + return org.bukkit.event.inventory.InventoryType.DECORATED_POT; + // Paper end } else { return InventoryType.CHEST; }