2024-06-13 22:14:13 +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/BlockAttachedEntity.java b/src/main/java/net/minecraft/world/entity/decoration/BlockAttachedEntity.java
|
2024-10-23 15:02:51 +02:00
|
|
|
index cd0a2270b58b6c0dba67270e7e1d1ba253eb7953..608acb4f3cb8f9a0dc10b819ed4bf577c229dd2c 100644
|
2024-06-13 22:14:13 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/decoration/BlockAttachedEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/decoration/BlockAttachedEntity.java
|
2024-10-23 15:02:51 +02:00
|
|
|
@@ -29,7 +29,7 @@ import org.bukkit.event.hanging.HangingBreakEvent;
|
2024-06-13 22:14:13 +02:00
|
|
|
public abstract class BlockAttachedEntity extends Entity {
|
|
|
|
|
|
|
|
private static final Logger LOGGER = LogUtils.getLogger();
|
|
|
|
- private int checkInterval;
|
|
|
|
+ private int checkInterval; { this.checkInterval = this.getId() % this.level().spigotConfig.hangingTickFrequency; } // Paper - Perf: offset item frame ticking
|
|
|
|
protected BlockPos pos;
|
|
|
|
|
|
|
|
protected BlockAttachedEntity(EntityType<? extends BlockAttachedEntity> type, Level world) {
|