Remove unused variable in resetWorldBorder method

Deleted an unused `IWorldBorder` variable in the `resetWorldBorder` method to clean up the code. This change helps improve readability and eliminates unnecessary declarations.
This commit is contained in:
Teriuihi 2025-02-08 20:45:30 +01:00
parent be7b508667
commit b8afe209bc

View File

@ -48,7 +48,6 @@ public class TeamPlayer {
log.info("Resetting world border for {}", player.getName());
double worldBorderSize = gamePhase.getWorldBorderSize();
log.info("Resetting world border to {} for {}", worldBorderSize, player.getName());
IWorldBorder worldBorder = worldBorderApi.getWorldBorder(player);
if (worldBorderSize <= 0) {
log.info("Resetting world border to global for {}", player.getName());
worldBorderApi.resetWorldBorderToGlobal(player);