2021-06-11 14:02:28 +02:00
|
|
|
From 0000000000000000000000000000000000000000 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/world/entity/decoration/HangingEntity.java b/src/main/java/net/minecraft/world/entity/decoration/HangingEntity.java
|
2021-06-13 16:14:18 +02:00
|
|
|
index acea1c03afb5b3e522edb072fd1c3f9b5c3edccc..ca9decf85dd1af0baf0d34a48aa67cbb9f4eb586 100644
|
2021-06-11 14:02:28 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/decoration/HangingEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/decoration/HangingEntity.java
|
|
|
|
@@ -35,7 +35,7 @@ public abstract class HangingEntity extends Entity {
|
|
|
|
protected static final Predicate<Entity> HANGING_ENTITY = (entity) -> {
|
|
|
|
return entity instanceof HangingEntity;
|
|
|
|
};
|
|
|
|
- private int checkInterval;
|
|
|
|
+ private int checkInterval; { this.checkInterval = this.getId() % this.level.spigotConfig.hangingTickFrequency; } // Paper
|
|
|
|
public BlockPos pos;
|
|
|
|
protected Direction direction;
|
|
|
|
|