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>
20 lines
1.1 KiB
Diff
20 lines
1.1 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MC_XiaoHei <xor7xiaohei@gmail.com>
|
|
Date: Thu, 14 Aug 2025 15:47:58 +0800
|
|
Subject: [PATCH] Do not tick Arrow life regardless
|
|
|
|
|
|
diff --git a/net/minecraft/world/entity/projectile/AbstractArrow.java b/net/minecraft/world/entity/projectile/AbstractArrow.java
|
|
index 1be2a7f45866bfe69b8f181fee98d1336b0cfba3..1a60d8f993d28a2cd2364acdf68b353220de49ab 100644
|
|
--- a/net/minecraft/world/entity/projectile/AbstractArrow.java
|
|
+++ b/net/minecraft/world/entity/projectile/AbstractArrow.java
|
|
@@ -212,7 +212,7 @@ public abstract class AbstractArrow extends Projectile {
|
|
this.setSharedFlagOnFire(this.getRemainingFireTicks() > 0);
|
|
}
|
|
} else {
|
|
- if (this.tickCount > 200) this.tickDespawn(); // Paper - tick life regardless after 10 seconds
|
|
+ // if (this.tickCount > 200) this.tickDespawn(); // Paper - tick life regardless after 10 seconds // Leaves - do not tick arrow life regardless
|
|
this.inGroundTime = 0;
|
|
Vec3 vec31 = this.position();
|
|
if (this.isInWater()) {
|