Fix flag particle spawn location during turn-in

Updated the particle spawning method to use the flag's turn-in location instead of the world border center. This ensures particles are correctly displayed at the intended location, aligning with gameplay expectations.
This commit is contained in:
2025-02-11 21:46:44 +01:00
parent 9563e9641f
commit 4cfc8f1572
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -195,7 +195,7 @@ public class Flag implements Runnable {
location.setY(location.getY() + 1);
particleTrail.add(location);
spawnTrail();
spawnParticlesOnSquareBorder(winningTeam.getWorldBorderCenter(), GameConfig.FLAG.TURN_IN_RADIUS);
spawnParticlesOnSquareBorder(winningTeam.getFlagTurnInLocation(), GameConfig.FLAG.TURN_IN_RADIUS);
return;
}
notifyAboutCapture();