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:
Ursprung
85d63dea36
Commit
d9d78cd9ca
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren