mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
--------- Co-authored-by: Lumine1909 <133463833+Lumine1909@users.noreply.github.com> Co-authored-by: violetc <58360096+s-yh-china@users.noreply.github.com> Co-authored-by: Helvetica Volubi <88063803+Suisuroru@users.noreply.github.com>
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: violetc <58360096+s-yh-china@users.noreply.github.com>
|
|
Date: Mon, 30 Oct 2023 10:43:44 +0800
|
|
Subject: [PATCH] Make Item tick vanilla
|
|
|
|
|
|
diff --git a/net/minecraft/world/entity/item/ItemEntity.java b/net/minecraft/world/entity/item/ItemEntity.java
|
|
index 78edda120dd53be66f3e995dcf4e62799a837532..4bd9b16ad73114c457eb5987adeb18231ec6eea7 100644
|
|
--- a/net/minecraft/world/entity/item/ItemEntity.java
|
|
+++ b/net/minecraft/world/entity/item/ItemEntity.java
|
|
@@ -129,6 +129,9 @@ public class ItemEntity extends Entity implements TraceableEntity {
|
|
// Paper start - EAR 2
|
|
@Override
|
|
public void inactiveTick() {
|
|
+ // Leaves start - vanilla
|
|
+ this.tick();
|
|
+ /*
|
|
super.inactiveTick();
|
|
if (this.pickupDelay > 0 && this.pickupDelay != 32767) {
|
|
this.pickupDelay--;
|
|
@@ -146,6 +149,8 @@ public class ItemEntity extends Entity implements TraceableEntity {
|
|
// CraftBukkit end
|
|
this.discard(org.bukkit.event.entity.EntityRemoveEvent.Cause.DESPAWN); // CraftBukkit - add Bukkit remove cause
|
|
}
|
|
+ */
|
|
+ // Leaves end - vanilla
|
|
}
|
|
// Paper end - EAR 2
|
|
|