aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch
diff options
context:
space:
mode:
authorLulu13022002 <[email protected]>2024-05-26 23:30:45 +0200
committerGitHub <[email protected]>2024-05-26 23:30:45 +0200
commit841ab4134df90a166a22396d1dc5841bcc38e35f (patch)
treeab3130bd844443bf73000e23cff5863559b29cb8 /patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch
parent1b8cdc6d827d761474f5589a7ff3f75c87ef9005 (diff)
downloadPaper-841ab4134df90a166a22396d1dc5841bcc38e35f.tar.gz
Paper-841ab4134df90a166a22396d1dc5841bcc38e35f.zip
Fix more item desync when an event is cancelled (#10654)
Diffstat (limited to 'patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch')
-rw-r--r--patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch b/patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch
index cbe6fb67df..2d47281f92 100644
--- a/patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch
+++ b/patches/server/0897-Add-titleOverride-to-InventoryOpenEvent.patch
@@ -8,7 +8,7 @@ diff --git a/src/main/java/net/minecraft/server/level/ServerPlayer.java b/src/ma
index d59225c63aa4d3df9f8e87a1b3527d044fd2c410..e10c8309e184fe2c5c9682aa901ed7a320980431 100644
--- a/src/main/java/net/minecraft/server/level/ServerPlayer.java
+++ b/src/main/java/net/minecraft/server/level/ServerPlayer.java
-@@ -1617,12 +1617,17 @@ public class ServerPlayer extends Player {
+@@ -1618,12 +1618,17 @@ public class ServerPlayer extends Player {
this.nextContainerCounter();
AbstractContainerMenu container = factory.createMenu(this.containerCounter, this.getInventory(), this);
@@ -27,7 +27,7 @@ index d59225c63aa4d3df9f8e87a1b3527d044fd2c410..e10c8309e184fe2c5c9682aa901ed7a3
if (container == null && !cancelled) { // Let pre-cancelled events fall through
// SPIGOT-5263 - close chest if cancelled
if (factory instanceof Container) {
-@@ -1644,7 +1649,7 @@ public class ServerPlayer extends Player {
+@@ -1645,7 +1650,7 @@ public class ServerPlayer extends Player {
} else {
// CraftBukkit start
this.containerMenu = container;