Fix: game crashed nicht mehr wenn PlayerProjectiles entfernt werden

This commit is contained in:
2026-09-16 17:08:57 +02:00
parent 532e78de04
commit 66b7ced23a
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -15,10 +15,10 @@ public class PlayerProjectile extends Actor
public void act()
{
move(7);
checkForEnemyCollision();
if (!isProjectileOnScreen()){
getWorld().removeObject(this);
}
checkForEnemyCollision();
}
public void checkForEnemyCollision(){