Logger message for direct-compression still being enabled

This commit is contained in:
Camotoy 2024-09-25 19:13:36 -04:00
parent bfd032d685
commit fc10ec265f
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F
2 changed files with 3 additions and 1 deletions

View file

@ -405,6 +405,8 @@ public class GeyserImpl implements GeyserApi, EventRegistrar {
logger.debug("Found SRV record \"" + remoteAddress + ":" + remotePort + "\"");
}
}
} else if (!config.advanced().useDirectConnection()) {
logger.warning("The use-direct-connection config option is deprecated. Please reach out to us on Discord if there's a reason it needs to be enabled.");
}
// Ensure that PacketLib does not create an event loop for handling packets; we'll do that ourselves

View file

@ -209,7 +209,7 @@ public final class ConfigLoader {
// Create the path in a way that Standalone changing the config name will be fine.
int extensionIndex = configFile.getName().lastIndexOf(".");
File advancedConfigPath = new File(configFile.getParent(), configFile.getName().substring(0, extensionIndex) + "_advanced" + configFile.getName().substring(extensionIndex));
File advancedConfigPath = new File(configFile.getParent(), configFile.getName().substring(0, extensionIndex) + "-advanced" + configFile.getName().substring(extensionIndex));
AdvancedConfig advancedConfig = null;
if (originallyEmpty || currentVersion != newVersion) {