mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 22:38:34 +02:00
NETSCRIPT: Compiled modules will be even more shared (#468)
This commit is contained in:
@@ -900,8 +900,6 @@ export const ns: InternalAPI<NSFull> = {
|
||||
|
||||
// Create new script if it does not already exist
|
||||
const newScript = new Script(file, sourceScript.code, destServer.hostname);
|
||||
// If the script being copied has no dependencies, reuse the module / URL
|
||||
// The new script will not show up in the correct location in the sources tab because it is just reusing the module from a different server
|
||||
destServer.scripts.push(newScript);
|
||||
helpers.log(ctx, () => `File '${file}' copied over to '${destServer?.hostname}'.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user