mirror of
https://github.com/Grasscutters/Cultivation.git
synced 2025-12-14 08:04:52 +01:00
Revert handle and add logging
Server.ts isn't actually printing the error to the user anyways so there was no point in trying to fix it
This commit is contained in:
@@ -40,11 +40,5 @@ export async function encryptionEnabled(path: string) {
|
||||
return false
|
||||
}
|
||||
|
||||
// Also check if null just in case
|
||||
if (serverConf == null) {
|
||||
console.log(`Server config at ${path} not found or invalid. Be sure to run the server at least once to generate it`)
|
||||
return false
|
||||
}
|
||||
|
||||
return serverConf.server.http.encryption.useEncryption
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user