From 066f9c03454cdfb2b0cee0dbc39f50c8631e28c9 Mon Sep 17 00:00:00 2001 From: Spottedleaf Date: Fri, 2 Aug 2019 10:48:22 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20chest=20logic=20being=20weird=20for=20coo?= =?UTF-8?q?rdinates=20that=20sum=20to=200=20or=20a=E2=80=A6=20(#2364)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We were previously calling what looks like a legacy check for distance away for the inventory. Unfortunately, with our logic, we called the open logic before the active container was set. So the legacy check would register 0 viewers and the logic would become bugged. --- .../fixup-Optimize-TileEntity-Ticking.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Spigot-Server-Patches/fixup-Optimize-TileEntity-Ticking.patch diff --git a/Spigot-Server-Patches/fixup-Optimize-TileEntity-Ticking.patch b/Spigot-Server-Patches/fixup-Optimize-TileEntity-Ticking.patch new file mode 100644 index 000000000..cc70f3c86 --- /dev/null +++ b/Spigot-Server-Patches/fixup-Optimize-TileEntity-Ticking.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Spottedleaf +Date: Tue, 23 Jul 2019 21:11:30 -0700 +Subject: [PATCH] fixup! Optimize TileEntity Ticking + + +diff --git a/src/main/java/net/minecraft/server/TileEntityChest.java b/src/main/java/net/minecraft/server/TileEntityChest.java +index 6c10f0eb89..4aa56e50e8 100644 +--- a/src/main/java/net/minecraft/server/TileEntityChest.java ++++ b/src/main/java/net/minecraft/server/TileEntityChest.java +@@ -0,0 +0,0 @@ public class TileEntityChest extends TileEntityLootable { // Paper - Remove ITic + int j = this.position.getY(); + int k = this.position.getZ(); + +- this.viewingCount = a(this.world, this, this.j, i, j, k, this.viewingCount); ++ //this.viewingCount = a(this.world, this, this.j, i, j, k, this.viewingCount); // Paper - check is faulty given our logic is called before active container set + this.b = this.a; + float f = 0.1F; + +-- \ No newline at end of file