--- a/net/minecraft/world/inventory/Containers.java +++ b/net/minecraft/world/inventory/Containers.java @@ -4,6 +4,10 @@ import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.world.entity.player.PlayerInventory; +// CraftBukkit start +import net.minecraft.world.entity.player.PlayerInventory; +// CraftBukkit end + public class Containers { public static final Containers GENERIC_9x1 = register("generic_9x1", ContainerChest::oneRow); @@ -23,7 +27,7 @@ public static final Containers GRINDSTONE = register("grindstone", ContainerGrindstone::new); public static final Containers HOPPER = register("hopper", ContainerHopper::new); public static final Containers LECTERN = register("lectern", (i, playerinventory) -> { - return new ContainerLectern(i); + return new ContainerLectern(i, playerinventory); // CraftBukkit }); public static final Containers LOOM = register("loom", ContainerLoom::new); public static final Containers MERCHANT = register("merchant", ContainerMerchant::new);