mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
e4602b6d48
This patch appears to be no longer relevant, and is seemingly a leading cause of datapack performance being horrific
23 lines
879 B
Diff
23 lines
879 B
Diff
From 66eec83809d55a892497e3be551e67febd917569 Mon Sep 17 00:00:00 2001
|
|
From: kickash32 <kickash32@gmail.com>
|
|
Date: Tue, 30 Jul 2019 03:17:16 +0500
|
|
Subject: [PATCH] offset item frame ticking
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityHanging.java b/src/main/java/net/minecraft/server/EntityHanging.java
|
|
index 21dbc9b2a..ef9c4717c 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityHanging.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityHanging.java
|
|
@@ -15,7 +15,7 @@ public abstract class EntityHanging extends Entity {
|
|
protected static final Predicate<Entity> b = (entity) -> {
|
|
return entity instanceof EntityHanging;
|
|
};
|
|
- private int e;
|
|
+ private int e; { this.e = this.getId() % this.world.spigotConfig.hangingTickFrequency; } // Paper
|
|
public BlockPosition blockPosition;
|
|
protected EnumDirection direction;
|
|
|
|
--
|
|
2.25.1
|
|
|