Update Singularity.ts

This commit is contained in:
Aerophia 2022-07-22 12:28:51 -05:00 committed by GitHub
parent 1f918011dc
commit c2ffb09514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1254,8 +1254,7 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
const callbackScript = _ctx.helper.string("callbackScript", _callbackScript);
const wd = GetServer(SpecialServers.WorldDaemon);
if (!(wd instanceof Server))
throw new Error("WorldDaemon was not a normal server. This is a bug contact dev.");
if (!(wd instanceof Server)) throw new Error("WorldDaemon was not a normal server. This is a bug contact dev.");
_ctx.helper.checkSingularityAccess();
@ -1285,3 +1284,4 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
},
};
}