aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/inventory/Containers.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patch-remap/og/net/minecraft/world/inventory/Containers.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/inventory/Containers.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/inventory/Containers.patch b/patch-remap/og/net/minecraft/world/inventory/Containers.patch
new file mode 100644
index 0000000000..0febcbd231
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/inventory/Containers.patch
@@ -0,0 +1,22 @@
+--- a/net/minecraft/world/inventory/Containers.java
++++ b/net/minecraft/world/inventory/Containers.java
+@@ -8,6 +8,10 @@
+ import net.minecraft.world.flag.FeatureFlagSet;
+ import net.minecraft.world.flag.FeatureFlags;
+
++// CraftBukkit start
++import net.minecraft.world.entity.player.PlayerInventory;
++// CraftBukkit end
++
+ public class Containers<T extends Container> implements FeatureElement {
+
+ public static final Containers<ContainerChest> GENERIC_9x1 = register("generic_9x1", ContainerChest::oneRow);
+@@ -28,7 +32,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);