aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0303-offset-item-frame-ticking.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0303-offset-item-frame-ticking.patch')
-rw-r--r--patches/server/0303-offset-item-frame-ticking.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/patches/server/0303-offset-item-frame-ticking.patch b/patches/server/0303-offset-item-frame-ticking.patch
new file mode 100644
index 0000000000..e5be0eb235
--- /dev/null
+++ b/patches/server/0303-offset-item-frame-ticking.patch
@@ -0,0 +1,19 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: kickash32 <[email protected]>
+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 47a62680279f15ac93eb521f7ec93c3b8d52c602..0ffff5329fa2c7833f9ec71528cb7f951cf78109 100644
+--- a/src/main/java/net/minecraft/world/entity/decoration/HangingEntity.java
++++ b/src/main/java/net/minecraft/world/entity/decoration/HangingEntity.java
+@@ -40,7 +40,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 - Perf: offset item frame ticking
+ public BlockPos pos;
+ protected Direction direction;
+