chore: pre-commit changes [skip ci]

This commit is contained in:
github-actions[bot] 2025-01-06 07:20:34 +00:00
parent 2528ebfe51
commit 678b29d1f9

View File

@ -142,8 +142,10 @@ public class DestinationServices {
public boolean teleportToDestination(String name, PlayerContainer player,
boolean doEffect) {
if (this.destinationRepository.containsKey(name)) {
if (player.getServer().getWorld(this.destinationRepository.get(name).getLoc().getWorldName()) == null) {
if (player.getServer().getWorld(this.destinationRepository.get(name)
.getLoc()
.getWorldName())
== null) {
infoLogger.warning(Lang.translate("desti.error.invalidworld"));
return false;
}