From 0de0d0fea589a5285ff433233bb10408ab38d1cb Mon Sep 17 00:00:00 2001 From: Kam Date: Thu, 18 Jan 2024 14:47:15 -0500 Subject: [PATCH] Kill Projectile after a Minute --- src/main/java/noppes/npcs/entity/EntityProjectile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/noppes/npcs/entity/EntityProjectile.java b/src/main/java/noppes/npcs/entity/EntityProjectile.java index ebe761a1c..2a4a93f2b 100644 --- a/src/main/java/noppes/npcs/entity/EntityProjectile.java +++ b/src/main/java/noppes/npcs/entity/EntityProjectile.java @@ -220,7 +220,7 @@ public class EntityProjectile extends EntityThrowable { public void onUpdate() { super.onEntityUpdate(); - if (ticksExisted == 400) { + if (ticksExisted >= 1200) { this.setDead(); } if(++ticksExisted % 10 == 0){ @@ -265,7 +265,7 @@ public class EntityProjectile extends EntityThrowable { { ++this.ticksInGround; - if (this.ticksInGround == 1200) + if (this.ticksInGround >= 1200) { this.setDead(); } @@ -284,7 +284,7 @@ public class EntityProjectile extends EntityThrowable { { ++this.ticksInAir; - if (this.ticksInAir == 1200) + if (this.ticksInAir >= 1200) { this.setDead(); }