From f43634ae431d1ba7ee959627ee295417fe08b067 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 28 Oct 2022 20:33:21 +1100 Subject: [PATCH] SPIGOT-7170: Cannot set slots in custom smithing inventory --- .../org/bukkit/craftbukkit/inventory/CraftContainer.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java index ce6d8f655..4fc1290c0 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftContainer.java @@ -20,7 +20,6 @@ import net.minecraft.world.inventory.ContainerLoom; import net.minecraft.world.inventory.ContainerMerchant; import net.minecraft.world.inventory.ContainerProperties; import net.minecraft.world.inventory.ContainerShulkerBox; -import net.minecraft.world.inventory.ContainerSmithing; import net.minecraft.world.inventory.ContainerSmoker; import net.minecraft.world.inventory.ContainerStonecutter; import net.minecraft.world.inventory.ContainerWorkbench; @@ -183,10 +182,8 @@ public class CraftContainer extends Container { delegate = new ContainerHopper(windowId, bottom, top); break; case ANVIL: - setupAnvil(top, bottom); // SPIGOT-6783 - manually set up slots so we can use the delegated inventory and not the automatically created one - break; case SMITHING: - delegate = new ContainerSmithing(windowId, bottom); + setupAnvil(top, bottom); // SPIGOT-6783 - manually set up slots so we can use the delegated inventory and not the automatically created one break; case BEACON: delegate = new ContainerBeacon(windowId, bottom);