M starkingdoms-client/src/config.json => starkingdoms-client/src/config.json +1 -1
@@ 18,4 18,4 @@
"isDevelopment": true
}
]
-}
+}<
\ No newline at end of file
M starkingdoms-client/src/config.ts => starkingdoms-client/src/config.ts +2 -3
@@ 37,7 37,7 @@ async function fetchWithTimeout(resource: RequestInfo | URL, options = {}) {
}
export async function loadConfig(): Promise<Config> {
- /*logger("loading configuration from " + CONFIG_URL);
+ logger("loading configuration from " + CONFIG_URL);
try {
const response = await fetchWithTimeout(CONFIG_URL, {
timeout: 1000,
@@ 47,8 47,7 @@ export async function loadConfig(): Promise<Config> {
logger(`error loading configuration: ${e}, using fallback`);
// @ts-ignore strong types are unhelpful here
return CONFIG;
- }*/
- return CONFIG;
+ }
}
export const DEFAULT_CONFIG = CONFIG;
M starkingdoms-client/src/globals.ts => starkingdoms-client/src/globals.ts +1 -0
@@ 58,6 58,7 @@ export const global: GlobalData = {
right: false,
rendering: null,
saveEligible: true,
+ leaving: false
};
export function player(): Part | undefined {