mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-20 00:04:22 +02:00
GO: Various changes before 2.6.0 (#1120)
This commit is contained in:
@@ -121,7 +121,7 @@ export function setRemovedFunctions(api: object, infos: Record<string, RemovedFu
|
||||
for (const [key, { version, replacement, replaceMsg }] of Object.entries(infos)) {
|
||||
Object.defineProperty(api, key, {
|
||||
value: (ctx: NetscriptContext) => () => {
|
||||
throw helpers.makeRuntimeErrorMsg(
|
||||
throw helpers.errorMessage(
|
||||
ctx,
|
||||
`Function removed in ${version}. ${replaceMsg ? replacement : `Please use ${replacement} instead.`}`,
|
||||
"REMOVED FUNCTION",
|
||||
|
||||
Reference in New Issue
Block a user