Skip to content

@loontail/minecraft-kit v0.8.14 / planRuntimeRepair

Function: planRuntimeRepair()

ts
function planRuntimeRepair(input): Promise<RepairPlan>

Build a repair plan covering the Java runtime files. target.runtime.installRoot is honoured automatically because both planInstall and the verify side resolve runtime paths through the same targetPaths.runtimeRoot(..., installRoot) helper.

Prefer kit.repair.runtime.plan(target, { from }) over importing this directly.

Parameters

ParameterType
inputAspectRepairInput

Returns

Promise<RepairPlan>

Example

ts
import { MinecraftKit } from "@loontail/minecraft-kit";

const kit = new MinecraftKit();
const verification = await kit.verify.runtime.run(target);
const plan = await kit.repair.runtime.plan(target, { from: verification });
await kit.repair.runtime.run(plan);

Source

src/repair/runtime.ts:30

MIT License