20 Zeilen
1.0 KiB
Diff
20 Zeilen
1.0 KiB
Diff
|
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
|
||
|
index e0bf8c6c838b18a0c55b6f3317033e892b631f5c..3277a56bcf3831f8d3c9fa9168c608b369eed7e4 100644
|
||
|
--- 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;
|
||
|
|