Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-16 11:30:06 +01:00
Fix lectern quick move
Dieser Commit ist enthalten in:
Ursprung
443c5062c1
Commit
ea2c81e4b9
24
patches/server/0888-Fix-lectern-quick-move.patch
Normale Datei
24
patches/server/0888-Fix-lectern-quick-move.patch
Normale Datei
@ -0,0 +1,24 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Kevin Raneri <kevin.raneri@gmail.com>
|
||||||
|
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);
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren