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