mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
43702a9e10
By: md_5 <git@md-5.net>
22 lines
1.1 KiB
Diff
22 lines
1.1 KiB
Diff
--- a/net/minecraft/world/inventory/Containers.java
|
|
+++ b/net/minecraft/world/inventory/Containers.java
|
|
@@ -3,6 +3,10 @@
|
|
import net.minecraft.core.IRegistry;
|
|
import net.minecraft.world.entity.player.PlayerInventory;
|
|
|
|
+// CraftBukkit start
|
|
+import net.minecraft.world.entity.player.PlayerInventory;
|
|
+// CraftBukkit end
|
|
+
|
|
public class Containers<T extends Container> {
|
|
|
|
public static final Containers<ContainerChest> GENERIC_9x1 = register("generic_9x1", ContainerChest::oneRow);
|
|
@@ -22,7 +26,7 @@
|
|
public static final Containers<ContainerGrindstone> GRINDSTONE = register("grindstone", ContainerGrindstone::new);
|
|
public static final Containers<ContainerHopper> HOPPER = register("hopper", ContainerHopper::new);
|
|
public static final Containers<ContainerLectern> LECTERN = register("lectern", (i, playerinventory) -> {
|
|
- return new ContainerLectern(i);
|
|
+ return new ContainerLectern(i, playerinventory); // CraftBukkit
|
|
});
|
|
public static final Containers<ContainerLoom> LOOM = register("loom", ContainerLoom::new);
|
|
public static final Containers<ContainerMerchant> MERCHANT = register("merchant", ContainerMerchant::new);
|