-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
b08ac8c
commit 4e178db
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: violetc <[email protected]> | ||
Date: Mon, 30 Oct 2023 10:43:44 +0800 | ||
Subject: [PATCH] Make Item tick vanilla | ||
|
||
|
||
diff --git a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java | ||
index 5eb9d599e2f6e61adb34c991fe9008859633fdfc..862e99ddfcc1216ea4b5a7f12efc1a67ac839674 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java | ||
+++ b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java | ||
@@ -233,6 +233,9 @@ public class ItemEntity extends Entity implements TraceableEntity { | ||
// Spigot start - copied from above | ||
@Override | ||
public void inactiveTick() { | ||
+ // Leaves start - vanilla | ||
+ this.tick(); | ||
+ /* | ||
// CraftBukkit start - Use wall time for pickup and despawn timers | ||
int elapsedTicks = MinecraftServer.currentTick - this.lastTick; | ||
if (this.pickupDelay != 32767) this.pickupDelay -= elapsedTicks; | ||
@@ -250,6 +253,8 @@ public class ItemEntity extends Entity implements TraceableEntity { | ||
// CraftBukkit end | ||
this.discard(); | ||
} | ||
+ */ | ||
+ // Leaves end - vanilla | ||
} | ||
// Spigot end | ||
|