mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-30 03:23:48 +01:00
Merge pull request #3660 from Undeemiss/stanek-error
STANEK: Stanek NS functions correctly throw errors when stanek not installed
This commit is contained in:
commit
2cb02bf445
@ -26,7 +26,7 @@ export function NetscriptStanek(
|
|||||||
): InternalAPI<IStanek> {
|
): InternalAPI<IStanek> {
|
||||||
function checkStanekAPIAccess(func: string): void {
|
function checkStanekAPIAccess(func: string): void {
|
||||||
if (!player.hasAugmentation(AugmentationNames.StaneksGift1, true)) {
|
if (!player.hasAugmentation(AugmentationNames.StaneksGift1, true)) {
|
||||||
helper.makeRuntimeErrorMsg(func, "Requires Stanek's Gift installed.");
|
throw helper.makeRuntimeErrorMsg(func, "Stanek's Gift is not installed");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user