Skip to content

Commit

Permalink
fix: Wrongly install forge/neoforge client/server and some error tele…
Browse files Browse the repository at this point in the history
…metry
  • Loading branch information
ci010 committed Dec 19, 2024
1 parent 011763c commit 40dbe67
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xmcl
1 change: 1 addition & 0 deletions xmcl-runtime/install/InstallService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export class InstallService extends AbstractService implements IInstallService {
return true
} catch (e) {
this.warn(`Failed to download mojmap from ${u}`)
this.warn(e)
}
}
return false
Expand Down
2 changes: 1 addition & 1 deletion xmcl-runtime/install/VersionMetadataService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { LauncherApp } from '../app/LauncherApp'
@ExposeServiceKey(VersionMetadataServiceKey)
export class VersionMetadataService extends AbstractService implements IVersionMetadataService {
private latest = {
release: '1.20.6',
release: '1.21.4',
snapshot: '21w37a',
}

Expand Down
1 change: 0 additions & 1 deletion xmcl-runtime/instance/InstanceLogService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export class InstanceLogService extends AbstractService implements IInstanceLogS
const result = await this.encoder.decode(buf, encoding || UTF8)
return result
} catch (e) {
this.error(new AnyError('GetLogContentError', `Fail to get log content "${name}"`, { cause: e }))
return ''
}
}
Expand Down
2 changes: 1 addition & 1 deletion xmcl-runtime/resourcePack/AbstractInstanceDoaminService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export abstract class AbstractInstanceDomainService extends AbstractService {
if (isSystemError(e)) {
if (e.code === 'ENOENT') {
// ignore
this.log(`Instance ${instancePath} not exist. Skip watching.`)
// this.log(`Instance ${instancePath} not exist. Skip watching.`) // verbose
} else {
throw e
}
Expand Down

0 comments on commit 40dbe67

Please sign in to comment.