2021-06-11 12:02:28 +00: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
|
2023-12-05 22:21:44 +00:00
|
|
|
index 469e4cc75eab1344a159ed5addd53f50cea7bd90..5f4c42c4ba44923cabb873bfad33abc2b1362e73 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/decoration/HangingEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/decoration/HangingEntity.java
|
2023-06-07 21:14:56 +00:00
|
|
|
@@ -38,7 +38,7 @@ public abstract class HangingEntity extends Entity {
|
2021-06-11 12:02:28 +00:00
|
|
|
protected static final Predicate<Entity> HANGING_ENTITY = (entity) -> {
|
|
|
|
return entity instanceof HangingEntity;
|
|
|
|
};
|
|
|
|
- private int checkInterval;
|
2023-06-07 22:28:06 +00:00
|
|
|
+ private int checkInterval; { this.checkInterval = this.getId() % this.level().spigotConfig.hangingTickFrequency; } // Paper
|
2021-06-11 12:02:28 +00:00
|
|
|
public BlockPos pos;
|
|
|
|
protected Direction direction;
|
|
|
|
|