~starkingdoms/starkingdoms

94228b735473d86d18b64a917c3e004546bee7ba — core 1 year, 8 months ago 276368f
fix tsc client_build failures
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 {