mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
25 lines
1.0 KiB
Diff
25 lines
1.0 KiB
Diff
From 2e0427480c92474fc32c919847bf2eae19e537c7 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
|
|
|
|
---
|
|
src/main/java/net/minecraft/server/EntityHanging.java | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityHanging.java b/src/main/java/net/minecraft/server/EntityHanging.java
|
|
index 3b282a18a..b15a85ca1 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityHanging.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityHanging.java
|
|
@@ -22,6 +22,7 @@ public abstract class EntityHanging extends Entity {
|
|
protected EntityHanging(EntityTypes<? extends EntityHanging> entitytypes, World world) {
|
|
super(entitytypes, world);
|
|
this.direction = EnumDirection.SOUTH;
|
|
+ this.e = this.getId() % this.world.spigotConfig.hangingTickFrequency; // Purpur
|
|
}
|
|
|
|
protected EntityHanging(EntityTypes<? extends EntityHanging> entitytypes, World world, BlockPosition blockposition) {
|
|
--
|
|
2.20.1
|
|
|