Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/Spigot-Server-Patches/0287-MC-124833.patch
Aikar 18c3716c49
Current Chunk for Entity and Block Entities, counts by entity type
This enables us a fast reference to the entities current chunk instead
of having to look it up by hashmap lookups.

We also store counts by type to further enable other performance optimizations in later patches.
2018-07-04 03:58:56 -04:00

29 Zeilen
1.2 KiB
Diff

From 938eb8913fdbb1ba1e093cc56a26bfcf43ca57ce Mon Sep 17 00:00:00 2001
From: Zach Brown <zach.brown@destroystokyo.com>
Date: Wed, 4 Apr 2018 21:00:43 -0400
Subject: [PATCH] MC-124833
Conflicting reports of what software this bug does and does not affect.
Given the trivial impact of fixing it and an overabundance of caution,
we'll patch it in Paper as well. This will probably be a short lived
patch, with it being fixed in Vanilla proper 1.13
diff --git a/src/main/java/net/minecraft/server/EntityItemFrame.java b/src/main/java/net/minecraft/server/EntityItemFrame.java
index 8b806c303..f0d6d6b85 100644
--- a/src/main/java/net/minecraft/server/EntityItemFrame.java
+++ b/src/main/java/net/minecraft/server/EntityItemFrame.java
@@ -103,6 +103,10 @@ public class EntityItemFrame extends EntityHanging {
}
itemstack.a((EntityItemFrame) null);
+
+ // Paper - MC-124833 - conflicting reports of what server software this does and doesn't affect.
+ // It's a one liner with near-zero impact so we'll patch it anyway just in case
+ this.setItem(ItemStack.a); // OBFHELPER - ItemStack.EMPTY
}
}
--
2.18.0