mirror of
https://github.com/LeavesMC/Leaves.git
synced 2025-12-19 14:59:32 +00:00
Do not tick Arrow life regardless (#688)
* Do not tick Arrow life regardless * fix: fix comment --------- Co-authored-by: Lumine1909 <133463833+Lumine1909@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
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 11adb3eacce9d46f15e6c5216e9b2494df158baf..85d358a86ff118ce34276d3b03c655c807cdea73 100644
|
||||
--- a/net/minecraft/world/entity/projectile/AbstractArrow.java
|
||||
+++ b/net/minecraft/world/entity/projectile/AbstractArrow.java
|
||||
@@ -218,7 +218,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()) {
|
||||
Reference in New Issue
Block a user