Change imports
This commit is contained in:
+2
-2
@@ -238,9 +238,9 @@ export function read_bmod(bytes: Uint8Array, file: string): Bmod {
|
||||
scripts[side as ScriptSide] = code;
|
||||
}
|
||||
}
|
||||
// what the bworld/engine shim reads, so it's in the bundle of every script that imports it
|
||||
// what the cubi/engine shim reads, so it's in the bundle of every script that imports it
|
||||
if (!manifest.engine_access && Object.values(scripts).some((code) => code.includes(ENGINE_GLOBAL))) {
|
||||
problems.push(`a script uses bworld/engine, which needs "engine_access": true in manifest.json`);
|
||||
problems.push(`a script uses cubi/engine, which needs "engine_access": true in manifest.json`);
|
||||
}
|
||||
const credits = manifest.credits === undefined ? undefined : text(manifest.credits);
|
||||
if (manifest.credits !== undefined && credits === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user