mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
Kill Projectile after a Minute
This commit is contained in:
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();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user