mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-05 02:22:12 +01:00
SPIGOT-7170: Cannot set slots in custom smithing inventory
By: md_5 <git@md-5.net>
This commit is contained in:
parent
814c67ace8
commit
76f35527a4
1 changed files with 1 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue