diff options
Diffstat (limited to 'patches/server/0319-Alternative-item-despawn-rate.patch')
-rw-r--r-- | patches/server/0319-Alternative-item-despawn-rate.patch | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/patches/server/0319-Alternative-item-despawn-rate.patch b/patches/server/0319-Alternative-item-despawn-rate.patch index ea7f7848df..86340551c0 100644 --- a/patches/server/0319-Alternative-item-despawn-rate.patch +++ b/patches/server/0319-Alternative-item-despawn-rate.patch @@ -6,10 +6,10 @@ Subject: [PATCH] Alternative item-despawn-rate Co-authored-by: Noah van der Aa <[email protected]> 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 7d12bedc4b80b9bcf50f468a9204191bea0894c1..7f8b35d6ae27086fa128abfe9b2369bb6c91ce60 100644 +index 5994cb69575d365f435f5ef6da5fa61ee9298fe1..e67e8d0593e3ba3fc8e9da59ad6494ea589ab337 100644 --- a/src/main/java/net/minecraft/world/entity/item/ItemEntity.java +++ b/src/main/java/net/minecraft/world/entity/item/ItemEntity.java -@@ -56,6 +56,7 @@ public class ItemEntity extends Entity implements TraceableEntity { +@@ -57,6 +57,7 @@ public class ItemEntity extends Entity implements TraceableEntity { public final float bobOffs; private int lastTick = MinecraftServer.currentTick - 1; // CraftBukkit public boolean canMobPickup = true; // Paper - Item#canEntityPickup @@ -17,7 +17,7 @@ index 7d12bedc4b80b9bcf50f468a9204191bea0894c1..7f8b35d6ae27086fa128abfe9b2369bb public ItemEntity(EntityType<? extends ItemEntity> type, Level world) { super(type, world); -@@ -208,7 +209,7 @@ public class ItemEntity extends Entity implements TraceableEntity { +@@ -209,7 +210,7 @@ public class ItemEntity extends Entity implements TraceableEntity { } } @@ -26,7 +26,7 @@ index 7d12bedc4b80b9bcf50f468a9204191bea0894c1..7f8b35d6ae27086fa128abfe9b2369bb // CraftBukkit start - fire ItemDespawnEvent if (CraftEventFactory.callItemDespawnEvent(this).isCancelled()) { this.age = 0; -@@ -232,7 +233,7 @@ public class ItemEntity extends Entity implements TraceableEntity { +@@ -233,7 +234,7 @@ public class ItemEntity extends Entity implements TraceableEntity { this.lastTick = MinecraftServer.currentTick; // CraftBukkit end @@ -35,7 +35,7 @@ index 7d12bedc4b80b9bcf50f468a9204191bea0894c1..7f8b35d6ae27086fa128abfe9b2369bb // CraftBukkit start - fire ItemDespawnEvent if (org.bukkit.craftbukkit.event.CraftEventFactory.callItemDespawnEvent(this).isCancelled()) { this.age = 0; -@@ -288,7 +289,7 @@ public class ItemEntity extends Entity implements TraceableEntity { +@@ -289,7 +290,7 @@ public class ItemEntity extends Entity implements TraceableEntity { private boolean isMergable() { ItemStack itemstack = this.getItem(); @@ -44,7 +44,7 @@ index 7d12bedc4b80b9bcf50f468a9204191bea0894c1..7f8b35d6ae27086fa128abfe9b2369bb } private void tryToMerge(ItemEntity other) { -@@ -531,6 +532,7 @@ public class ItemEntity extends Entity implements TraceableEntity { +@@ -532,6 +533,7 @@ public class ItemEntity extends Entity implements TraceableEntity { public void setItem(ItemStack stack) { this.getEntityData().set(ItemEntity.DATA_ITEM, stack); @@ -52,7 +52,7 @@ index 7d12bedc4b80b9bcf50f468a9204191bea0894c1..7f8b35d6ae27086fa128abfe9b2369bb } @Override -@@ -585,7 +587,7 @@ public class ItemEntity extends Entity implements TraceableEntity { +@@ -586,7 +588,7 @@ public class ItemEntity extends Entity implements TraceableEntity { public void makeFakeItem() { this.setNeverPickUp(); |