From 0004ccb0f6c5c13085e1571dd5d8e7047787be8c Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Sun, 7 Dec 2014 22:57:26 -0600 Subject: [PATCH] Missed a comment in chest sound patch --- ...-Move-sound-handling-out-of-the-chest-tick-loop.patch | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Spigot-Server-Patches/0029-Move-sound-handling-out-of-the-chest-tick-loop.patch b/Spigot-Server-Patches/0029-Move-sound-handling-out-of-the-chest-tick-loop.patch index 477ae2d..800b472 100644 --- a/Spigot-Server-Patches/0029-Move-sound-handling-out-of-the-chest-tick-loop.patch +++ b/Spigot-Server-Patches/0029-Move-sound-handling-out-of-the-chest-tick-loop.patch @@ -1,4 +1,4 @@ -From 177e07b2410353cc0085387554ed7204d76ba9e6 Mon Sep 17 00:00:00 2001 +From 1c2ed16fe8abd746179ac58e9bc1a1b545e9dddf Mon Sep 17 00:00:00 2001 From: Iceee Date: Fri, 28 Nov 2014 11:56:55 -0600 Subject: [PATCH] Move sound handling out of the chest tick loop @@ -7,7 +7,7 @@ This allows us to disable ticking chests and enderchests without any noticeable difference to players diff --git a/src/main/java/net/minecraft/server/TileEntityChest.java b/src/main/java/net/minecraft/server/TileEntityChest.java -index 0f29365..e8f7aeb 100644 +index 0f29365..f61a43d 100644 --- a/src/main/java/net/minecraft/server/TileEntityChest.java +++ b/src/main/java/net/minecraft/server/TileEntityChest.java @@ -12,13 +12,13 @@ public class TileEntityChest extends TileEntityContainer implements IUpdatePlaye @@ -48,7 +48,7 @@ index 0f29365..e8f7aeb 100644 } -@@ -340,6 +344,31 @@ public class TileEntityChest extends TileEntityContainer implements IUpdatePlaye +@@ -340,6 +344,32 @@ public class TileEntityChest extends TileEntityContainer implements IUpdatePlaye ++this.l; if (this.world == null) return; // CraftBukkit @@ -76,11 +76,12 @@ index 0f29365..e8f7aeb 100644 + + this.world.makeSound(d1, (double) locY + 0.5D, d0, "random.chestopen", 0.5F, this.world.random.nextFloat() * 0.1F + 0.9F); + } ++ // PaperSpigot end + this.world.playBlockAction(this.position, this.w(), 1, this.l); // CraftBukkit start - Call redstone event -@@ -363,6 +392,39 @@ public class TileEntityChest extends TileEntityContainer implements IUpdatePlaye +@@ -363,6 +393,39 @@ public class TileEntityChest extends TileEntityContainer implements IUpdatePlaye --this.l; if (this.world == null) return; // CraftBukkit