Fix: playerProjectiles werden auch am rechten Rand vom Fenster entfernt

This commit is contained in:
2026-09-16 17:11:28 +02:00
parent 66b7ced23a
commit aa8fb9a067
2 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ public class PlayerProjectile extends Actor
return false;
}
//Check X-Value
if (getX() <= 0 || getX() >= getWorld().getHeight()-1){
if (getX() <= 0 || getX() >= getWorld().getWidth()-1){
return false;
}
return true;