mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
fix manualHack
This commit is contained in:
parent
0dff3e22bc
commit
6a2e5b06ad
@ -95,7 +95,7 @@ function wrapFunction(
|
|||||||
boolean: helpers.boolean,
|
boolean: helpers.boolean,
|
||||||
getServer: (hostname: string) => helpers.getServer(hostname, ctx),
|
getServer: (hostname: string) => helpers.getServer(hostname, ctx),
|
||||||
checkSingularityAccess: () => helpers.checkSingularityAccess(functionName),
|
checkSingularityAccess: () => helpers.checkSingularityAccess(functionName),
|
||||||
hack: helpers.hack,
|
hack: (hostname: any, manual: any, extra?: any) => helpers.hack(ctx, hostname, manual, extra),
|
||||||
getValidPort: (port: any) => helpers.getValidPort(functionPath, port),
|
getValidPort: (port: any) => helpers.getValidPort(functionPath, port),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -598,8 +598,7 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
|
|||||||
const server = player.getCurrentServer();
|
const server = player.getCurrentServer();
|
||||||
return _ctx.helper.hack(server.hostname, true);
|
return _ctx.helper.hack(server.hostname, true);
|
||||||
},
|
},
|
||||||
installBackdoor: (_ctx: NetscriptContext) =>
|
installBackdoor: (_ctx: NetscriptContext) => async (): Promise<void> => {
|
||||||
function (): Promise<void> {
|
|
||||||
_ctx.helper.checkSingularityAccess();
|
_ctx.helper.checkSingularityAccess();
|
||||||
const baseserver = player.getCurrentServer();
|
const baseserver = player.getCurrentServer();
|
||||||
if (!(baseserver instanceof Server)) {
|
if (!(baseserver instanceof Server)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user