3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 16:12:46 +01:00

Ensure metrics UUID is valid

Dieser Commit ist enthalten in:
Camotoy 2024-08-21 21:38:13 -04:00
Ursprung 85d63dea36
Commit d9d78cd9ca
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -34,6 +34,7 @@ import org.spongepowered.configurate.yaml.YamlConfigurationLoader;
import java.io.File;
import java.io.IOException;
import java.util.UUID;
import java.util.function.Consumer;
import static org.spongepowered.configurate.NodePath.path;
@ -107,6 +108,13 @@ public final class ConfigLoader {
}
return null;
})
.addAction(path("metrics", "uuid"), (path, value) -> {
if ("generateduuid".equals(value.getString())) {
// Manually copied config without Metrics UUID creation?
return new Object[]{UUID.randomUUID()};
}
return null;
})
.addAction(path("bedrock", "motd1"), rename("primary-motd"))
.addAction(path("bedrock", "motd2"), rename("secondary-motd"))
// Legacy config values