aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch
diff options
context:
space:
mode:
authorShane Freeder <[email protected]>2024-02-22 16:23:15 +0000
committerShane Freeder <[email protected]>2024-02-22 16:23:15 +0000
commit3ea95efdebba7254e842dec66214f71de4721993 (patch)
tree6e55ce324f94bae3f63fae40d816087adb9b8e83 /patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch
parent4939f8711884901ddf1c56337f606de71cdae78d (diff)
downloadPaper-3ea95efdebba7254e842dec66214f71de4721993.tar.gz
Paper-3ea95efdebba7254e842dec66214f71de4721993.zip
Do not access world state to see if we can see a Player
Thrown into the adventure patch because I don't see the justification of a patch existing for something like this.
Diffstat (limited to 'patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch')
-rw-r--r--patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch b/patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch
index 9faa2b4707..269657c258 100644
--- a/patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch
+++ b/patches/server/0934-Add-slot-sanity-checks-in-container-clicks.patch
@@ -5,10 +5,10 @@ Subject: [PATCH] Add slot sanity checks in container clicks
diff --git a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
-index 9d24b63c9a8a22cafac570421333f6edfd4fd5c6..f59b49a7e9884def9bc9f30dbd4c72dac2915c76 100644
+index 270a76e932b76105a8a986b71ac8da8096368c73..e7f51d24868038179b0882c0e2cd4ce1f4fb56b7 100644
--- a/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
+++ b/src/main/java/net/minecraft/server/network/ServerGamePacketListenerImpl.java
-@@ -2888,6 +2888,12 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
+@@ -2892,6 +2892,12 @@ public class ServerGamePacketListenerImpl extends ServerCommonPacketListenerImpl
break;
case SWAP:
if ((packet.getButtonNum() >= 0 && packet.getButtonNum() < 9) || packet.getButtonNum() == 40) {