2021-08-21 16:32:07 +02:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Noah van der Aa <ndvdaa@gmail.com>
|
|
|
|
Date: Wed, 18 Aug 2021 23:01:55 +0200
|
|
|
|
Subject: [PATCH] Respect despawn rate in item merge check
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
|
2022-03-01 04:25:13 +01:00
|
|
|
index 47b946f7b761a318780b7c1973d0450faf7e8b62..f7d29950644a5cf12da0d31246d9f5fcbcc201bb 100644
|
2021-08-21 16:32:07 +02:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java
|
2021-11-25 00:46:26 +01:00
|
|
|
@@ -261,7 +261,7 @@ public class ItemEntity extends Entity {
|
2021-08-21 16:32:07 +02:00
|
|
|
private boolean isMergable() {
|
|
|
|
ItemStack itemstack = this.getItem();
|
|
|
|
|
|
|
|
- return this.isAlive() && this.pickupDelay != 32767 && this.age != -32768 && this.age < 6000 && itemstack.getCount() < itemstack.getMaxStackSize();
|
|
|
|
+ return this.isAlive() && this.pickupDelay != 32767 && this.age != -32768 && this.age < this.getDespawnRate() && itemstack.getCount() < itemstack.getMaxStackSize(); // Paper - respect despawn rate in pickup check.
|
|
|
|
}
|
|
|
|
|
|
|
|
private void tryToMerge(ItemEntity other) {
|