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
|
2023-06-08 00:28:06 +02:00
|
|
|
index 760e9e96cb567861f40a0b3debb58dc867be4026..66cf0a6cd1525ecf2615809210a26d55f445d07d 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
|
2023-06-07 23:14:56 +02:00
|
|
|
@@ -38,7 +38,7 @@ public abstract class HangingEntity extends Entity {
|
2021-06-11 14:02:28 +02:00
|
|
|
protected static final Predicate<Entity> HANGING_ENTITY = (entity) -> {
|
|
|
|
return entity instanceof HangingEntity;
|
|
|
|
};
|
|
|
|
- private int checkInterval;
|
2023-06-08 00:28:06 +02:00
|
|
|
+ private int checkInterval; { this.checkInterval = this.getId() % this.level().spigotConfig.hangingTickFrequency; } // Paper
|
2021-06-11 14:02:28 +02:00
|
|
|
public BlockPos pos;
|
|
|
|
protected Direction direction;
|
|
|
|
|