diff --git a/Spigot-Server-Patches/Optimize-TileEntity-Ticking.patch b/Spigot-Server-Patches/Optimize-TileEntity-Ticking.patch index cf9b3425c..0edda7ffc 100644 --- a/Spigot-Server-Patches/Optimize-TileEntity-Ticking.patch +++ b/Spigot-Server-Patches/Optimize-TileEntity-Ticking.patch @@ -65,6 +65,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + double d0 = (double) this.position.getZ() + 0.5D; + double d1 = (double) this.position.getX() + 0.5D; ++ int yLoc = this.position.getY(); + + if (this.i != null) { + d0 += 0.5D; @@ -74,7 +75,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + d1 += 0.5D; + } + -+ this.world.a((EntityHuman) null, d1, (double) j + 0.5D, d0, SoundEffects.X, SoundCategory.BLOCKS, 0.5F, this.world.random.nextFloat() * 0.1F + 0.9F); ++ this.world.a((EntityHuman) null, d1, (double) yLoc + 0.5D, d0, SoundEffects.X, SoundCategory.BLOCKS, 0.5F, this.world.random.nextFloat() * 0.1F + 0.9F); + } + // Paper end + @@ -98,6 +99,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + + double d0 = (double) this.getPosition().getX() + 0.5D; + double d2 = (double) this.getPosition().getZ() + 0.5D; ++ int yLoc = this.position.getY(); + + if (this.i != null) { + d2 += 0.5D; @@ -107,8 +109,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + d0 += 0.5D; + } + -+ this.world.a((EntityHuman) null, d0, (double) j + 0.5D, d2, SoundEffects.V, SoundCategory.BLOCKS, 0.5F, this.world.random.nextFloat() * 0.1F + 0.9F); -+ this.j = 0.0F; ++ this.world.a((EntityHuman) null, d0, (double) yLoc + 0.5D, d2, SoundEffects.V, SoundCategory.BLOCKS, 0.5F, this.world.random.nextFloat() * 0.1F + 0.9F); ++ this.j = 0.0F; + } + // Paper end + diff --git a/paperclip.sh b/paperclip.sh index e73e95b72..5502cb1fe 100755 --- a/paperclip.sh +++ b/paperclip.sh @@ -11,4 +11,4 @@ echo "" echo "" echo "" echo "Build success!" -echo "Copied final jar to $(pwd)/Paperclip.jar" \ No newline at end of file +echo "Copied final jar to $(pwd)/paperclip.jar"