From 66b7ced23a86044f4019c78c664966025a745df8 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 16 Sep 2026 17:08:57 +0200 Subject: [PATCH] Fix: game crashed nicht mehr wenn PlayerProjectiles entfernt werden --- SMIMS-Game/PlayerProjectile.class | Bin 1004 -> 1004 bytes SMIMS-Game/PlayerProjectile.java | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/SMIMS-Game/PlayerProjectile.class b/SMIMS-Game/PlayerProjectile.class index fd9d3b1f709ad481a7ece3aece75f0ba17ec0f72..f10839ba7c0a4c61af33a01d1da41a434dd6fe07 100644 GIT binary patch delta 209 zcmaFE{)T-*z6u*7gIID#YI3$)evxZlYHp=-eojtiab|uV7Xt@_AP<8OgYd)xMK)0$ z1~CTliPM$2B^jjH8Kij_WEf;89<`XPz*xX2xp^X^5TlOPHU@!N4BS9U1c)UzGB7YO zGw1_JF$Pv3DagPEG>wZv7|0Tte4a_pRFZ*_fgdQ!$e;(5j{~Y^1k&D~ZH4ti=g%16T0!HsTf{>B0eQUBjY>Fsa4= zP5zn5SG%=)JyBrn%uy1349sipM;N+@B}N#V@5bxE!$cxA$HeAzrs!!%(c%ujtPpZE zCwTx6STQ5CnIRk~blIt)?WdKkH3%th2}{23`I~r7OO;i~--sJqQ~t_EZ40p#Jp}e3 NG79ZQ#LS!6{QwD$ALjr7 diff --git a/SMIMS-Game/PlayerProjectile.java b/SMIMS-Game/PlayerProjectile.java index 85923cc..76ca5f8 100644 --- a/SMIMS-Game/PlayerProjectile.java +++ b/SMIMS-Game/PlayerProjectile.java @@ -15,10 +15,10 @@ public class PlayerProjectile extends Actor public void act() { move(7); + checkForEnemyCollision(); if (!isProjectileOnScreen()){ getWorld().removeObject(this); } - checkForEnemyCollision(); } public void checkForEnemyCollision(){