mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-21 16:52:55 +02:00
SCRIPTS: Script modules are reused when they are imported (#461)
Also corrects some compile race conditions.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Player } from "@player";
|
||||
import { Generic_fromJSON, Generic_toJSON, IReviverValue, Reviver } from "../../../utils/JSONReviver";
|
||||
import { Generic_fromJSON, Generic_toJSON, IReviverValue, constructorsForReviver } from "../../../utils/JSONReviver";
|
||||
import { Work, WorkType } from "./Work";
|
||||
|
||||
export const isSleeveSupportWork = (w: Work | null): w is SleeveSupportWork =>
|
||||
@@ -35,4 +35,4 @@ export class SleeveSupportWork extends Work {
|
||||
}
|
||||
}
|
||||
|
||||
Reviver.constructors.SleeveSupportWork = SleeveSupportWork;
|
||||
constructorsForReviver.SleeveSupportWork = SleeveSupportWork;
|
||||
|
||||
Reference in New Issue
Block a user