mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 07:48:53 +01:00
Fix map rendering issues - Fixes #1796
This commit is contained in:
parent
52ebb355bc
commit
27c32b9344
1 changed files with 4 additions and 17 deletions
|
@ -1,4 +1,4 @@
|
|||
From 8635173789c985456da0e2561973b523dfcdd7f2 Mon Sep 17 00:00:00 2001
|
||||
From c53420457dcd8f4e89e5e1ea371144ef7ecceec4 Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue