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
Binary file not shown.
+1 -1
View File
@@ -15,10 +15,10 @@ public class PlayerProjectile extends Actor
public void act() public void act()
{ {
move(7); move(7);
checkForEnemyCollision();
if (!isProjectileOnScreen()){ if (!isProjectileOnScreen()){
getWorld().removeObject(this); getWorld().removeObject(this);
} }
checkForEnemyCollision();
} }
public void checkForEnemyCollision(){ public void checkForEnemyCollision(){