From 388f0e100107552d303c888d311ba0db82f660a3 Mon Sep 17 00:00:00 2001 From: Aikar Date: Wed, 24 Jan 2018 20:08:58 -0500 Subject: [PATCH] MC-99321 - Dont check for blocked double chest for hoppers etc This is a source of MAJOR lag for hoppers, as well as a gameplay bug. This removes the necessity to disable the cat on chest behavior to improve performance. now performance will be improved even if you have cat chest detection on. --- ...eck-for-blocked-double-chest-for-hop.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Spigot-Server-Patches/0268-MC-99321-Dont-check-for-blocked-double-chest-for-hop.patch diff --git a/Spigot-Server-Patches/0268-MC-99321-Dont-check-for-blocked-double-chest-for-hop.patch b/Spigot-Server-Patches/0268-MC-99321-Dont-check-for-blocked-double-chest-for-hop.patch new file mode 100644 index 0000000000..7d20f158c5 --- /dev/null +++ b/Spigot-Server-Patches/0268-MC-99321-Dont-check-for-blocked-double-chest-for-hop.patch @@ -0,0 +1,28 @@ +From 5a74672ec236558bcc757636e0a9ed4da855db44 Mon Sep 17 00:00:00 2001 +From: Aikar +Date: Wed, 24 Jan 2018 20:06:39 -0500 +Subject: [PATCH] MC-99321 - Dont check for blocked double chest for hoppers + etc + +This is a source of MAJOR lag for hoppers, as well as a gameplay bug. + +This removes the necessity to disable the cat on chest behavior to improve performance. + +now performance will be improved even if you have cat chest detection on. + +diff --git a/src/main/java/net/minecraft/server/BlockChest.java b/src/main/java/net/minecraft/server/BlockChest.java +index 90267a1fb..91d3308c1 100644 +--- a/src/main/java/net/minecraft/server/BlockChest.java ++++ b/src/main/java/net/minecraft/server/BlockChest.java +@@ -348,7 +348,7 @@ public class BlockChest extends BlockTileEntity { + // Paper end + + if (block == this) { +- if (this.e(world, blockposition1)) { ++ if (!flag && this.e(world, blockposition1)) { // Paper - check for allowBlocked flag - MC-99321 + return null; + } + +-- +2.15.1 +