Paper/Spigot-Server-Patches/0392-offset-item-frame-ticking.patch
Spottedleaf 19de9af63c 1.15.2 update (#2887)
Functional GUI fix added by billygalbreath
2020-01-21 20:02:07 -06:00

23 lines
889 B
Diff

From 2b0ecef5ce123353ef0bf4dbe36f08ab7c7071af 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.0.windows.1