Fixed bug with stuck projectiles

This commit is contained in:
Goodbird authored and Kam committed 2024-01-18 16:10:34 -05:00
1 parent f3e162dafe
commit f2f8b63ae5
1 file changed
+3
@@ -220,6 +220,9 @@ public class EntityProjectile extends EntityThrowable {
public void onUpdate()
{
super.onEntityUpdate();
if (ticksExisted == 400) {
this.setDead();
}
if(++ticksExisted % 10 == 0){
EventHooks.onProjectileTick(this);
}