aboutsummaryrefslogtreecommitdiffhomepage
path: root/patches/server/0283-don-t-go-below-0-for-pickupDelay-breaks-picking-up-i.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/server/0283-don-t-go-below-0-for-pickupDelay-breaks-picking-up-i.patch')
-rw-r--r--patches/server/0283-don-t-go-below-0-for-pickupDelay-breaks-picking-up-i.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/patches/server/0283-don-t-go-below-0-for-pickupDelay-breaks-picking-up-i.patch b/patches/server/0283-don-t-go-below-0-for-pickupDelay-breaks-picking-up-i.patch
deleted file mode 100644
index f6592c8703..0000000000
--- a/patches/server/0283-don-t-go-below-0-for-pickupDelay-breaks-picking-up-i.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
-From: Aikar <[email protected]>
-Date: Sun, 24 Mar 2019 18:09:20 -0400
-Subject: [PATCH] don't go below 0 for pickupDelay, breaks picking up items
-
-vanilla checks for == 0
-
-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 f9dfd6e7b610cfee75524a525ab0e72bed5522da..6dfa43036afeba75a7ecc5a82637f081624d5c69 100644
---- a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
-+++ b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
-@@ -149,6 +149,7 @@ public class ItemEntity extends Entity implements TraceableEntity {
- // CraftBukkit start - Use wall time for pickup and despawn timers
- int elapsedTicks = MinecraftServer.currentTick - this.lastTick;
- if (this.pickupDelay != 32767) this.pickupDelay -= elapsedTicks;
-+ this.pickupDelay = Math.max(0, this.pickupDelay); // Paper - don't go below 0
- if (this.age != -32768) this.age += elapsedTicks;
- this.lastTick = MinecraftServer.currentTick;
- // CraftBukkit end
-@@ -234,6 +235,7 @@ public class ItemEntity extends Entity implements TraceableEntity {
- // CraftBukkit start - Use wall time for pickup and despawn timers
- int elapsedTicks = MinecraftServer.currentTick - this.lastTick;
- if (this.pickupDelay != 32767) this.pickupDelay -= elapsedTicks;
-+ this.pickupDelay = Math.max(0, this.pickupDelay); // Paper - don't go below 0
- if (this.age != -32768) this.age += elapsedTicks;
- this.lastTick = MinecraftServer.currentTick;
- // CraftBukkit end