mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
Re-add setting exports
This commit is contained in:
parent
aa8d105e14
commit
4e4d79388b
@ -112,7 +112,8 @@ export class ModLoader {
|
||||
// @ts-ignore
|
||||
const module = modules(key);
|
||||
for (const member in module) {
|
||||
if (member === "default") {
|
||||
if (member === "default" || member === "__$S__") {
|
||||
// Setter
|
||||
continue;
|
||||
}
|
||||
if (exports[member]) {
|
||||
@ -124,7 +125,7 @@ export class ModLoader {
|
||||
return module[member];
|
||||
},
|
||||
set(v) {
|
||||
throw new Error("Overriding the shapez exports is currently not possible");
|
||||
module.__$S__(member, v);
|
||||
},
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user