Fix: Game Crashed nicht mehr wenn das PlayerProjectile einen Gegner berührt

This commit is contained in:
2026-09-16 12:23:03 +02:00
parent ce7d999b0f
commit da0a97adfe
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()
{
move(7);
checkForEnemyCollision();
if (!isProjectileOnScreen()){
getWorld().removeObject(this);
}
checkForEnemyCollision();
}
public void checkForEnemyCollision(){