Fixed bug with stuck projectiles

This commit is contained in:
Goodbird committed 2024-01-03 11:08:58 +03:00
1 parent 21c16e5341
commit 0be46a4e72
1 file changed
+3
@@ -219,6 +219,9 @@ public class EntityProjectile extends EntityThrowable {
public void onUpdate()
{
super.onEntityUpdate();
if (ticksExisted == 400) {
this.setDead();
}
if(++ticksExisted % 10 == 0){
EventHooks.onProjectileTick(this);
}