Kill Projectile after a Minute

This commit is contained in:
Kam committed 2024-01-18 14:47:15 -05:00
1 parent 3e43855128
commit 0de0d0fea5
1 file changed
+3 -3
@@ -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();
}