aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNassim Jahnke <[email protected]>2022-04-02 09:15:39 +0200
committerNassim Jahnke <[email protected]>2022-04-02 09:15:39 +0200
commitea2c81e4b9232447f9896af2aac4cd0bf62386fd (patch)
treecf8164baa469bf62702c168680b1e639fee70344
parent443c5062c1b636e169707c2dcd7eb3ab5d6c7ed9 (diff)
downloadPaper-ea2c81e4b9232447f9896af2aac4cd0bf62386fd.tar.gz
Paper-ea2c81e4b9232447f9896af2aac4cd0bf62386fd.zip
Fix lectern quick move
-rw-r--r--patches/server/0888-Fix-lectern-quick-move.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/patches/server/0888-Fix-lectern-quick-move.patch b/patches/server/0888-Fix-lectern-quick-move.patch
new file mode 100644
index 0000000000..ef55c38454
--- /dev/null
+++ b/patches/server/0888-Fix-lectern-quick-move.patch
@@ -0,0 +1,24 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Kevin Raneri <[email protected]>
+Date: Sat, 2 Apr 2022 02:12:13 -0400
+Subject: [PATCH] Fix lectern quick move
+
+
+diff --git a/src/main/java/net/minecraft/world/inventory/LecternMenu.java b/src/main/java/net/minecraft/world/inventory/LecternMenu.java
+index ff79925bc6437222f9ceb133e21bbc0600cc74ed..e5498a5703f282160b8171a0b81711cfc24d323a 100644
+--- a/src/main/java/net/minecraft/world/inventory/LecternMenu.java
++++ b/src/main/java/net/minecraft/world/inventory/LecternMenu.java
+@@ -120,6 +120,13 @@ public class LecternMenu extends AbstractContainerMenu {
+ }
+ }
+
++ // Paper start
++ @Override
++ public ItemStack quickMoveStack(net.minecraft.world.entity.player.Player player, int index) {
++ return ItemStack.EMPTY;
++ }
++ // Paper end
++
+ @Override
+ public void setData(int id, int value) {
+ super.setData(id, value);