From 27c32b9344f70bc17d8e910a3c4eb9e9021cb5a0 Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 29 Mar 2019 02:27:56 -0400 Subject: [PATCH] Fix map rendering issues - Fixes #1796 --- ...item-frames-performance-and-bug-fixe.patch | 21 ++++--------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/Spigot-Server-Patches/0110-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch b/Spigot-Server-Patches/0110-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch index bed1783044..5ecd17560f 100644 --- a/Spigot-Server-Patches/0110-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch +++ b/Spigot-Server-Patches/0110-Improve-Maps-in-item-frames-performance-and-bug-fixe.patch @@ -1,4 +1,4 @@ -From 8635173789c985456da0e2561973b523dfcdd7f2 Mon Sep 17 00:00:00 2001 +From c53420457dcd8f4e89e5e1ea371144ef7ecceec4 Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 29 Apr 2016 20:02:00 -0400 Subject: [PATCH] Improve Maps (in item frames) performance and bug fixes @@ -13,7 +13,7 @@ custom renderers are in use, defaulting to the much simpler Vanilla system. Additionally, numerous issues to player position tracking on maps has been fixed. diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java -index 16d28c5db..027fc9bae 100644 +index e97bb2305..5e5a747e9 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -615,6 +615,12 @@ public abstract class EntityHuman extends EntityLiving { @@ -29,21 +29,8 @@ index 16d28c5db..027fc9bae 100644 ItemStack itemstack1 = this.a(entityitem); -diff --git a/src/main/java/net/minecraft/server/EntityTrackerEntry.java b/src/main/java/net/minecraft/server/EntityTrackerEntry.java -index de0cf6b73..b3aa57d19 100644 ---- a/src/main/java/net/minecraft/server/EntityTrackerEntry.java -+++ b/src/main/java/net/minecraft/server/EntityTrackerEntry.java -@@ -97,7 +97,7 @@ public class EntityTrackerEntry { - } - - // PAIL : rename -- if (this.tracker instanceof EntityItemFrame /*&& this.a % 10 == 0*/) { // CraftBukkit - Moved below, should always enter this block -+ if (this.tracker instanceof EntityItemFrame && this.a % 20 == 0) { // Paper - EntityItemFrame entityitemframe = (EntityItemFrame) this.tracker; - ItemStack itemstack = entityitemframe.getItem(); - diff --git a/src/main/java/net/minecraft/server/World.java b/src/main/java/net/minecraft/server/World.java -index d8ef300f7..744cb9b0b 100644 +index 3e104a126..b287dbd91 100644 --- a/src/main/java/net/minecraft/server/World.java +++ b/src/main/java/net/minecraft/server/World.java @@ -1072,6 +1072,7 @@ public abstract class World implements IEntityAccess, GeneratorAccess, IIBlockAc @@ -140,5 +127,5 @@ index 256a13178..5768cd512 100644 public RenderData() { -- -2.20.1 +2.21.0