Single module modding
This commit is contained in:
@@ -19,7 +19,7 @@ self.onmessage = (event: MessageEvent<{ port: MessagePort }>) => {
|
||||
port.onmessage = async (event: MessageEvent<PoolToWorker>) => {
|
||||
const message = event.data;
|
||||
if (message.type === "init") {
|
||||
// worldgen scripts with engine access hook engine.common here, in this worker's own copy of the engine
|
||||
// worldgen phases with engine access hook engine.common here, in this worker's own copy of the engine
|
||||
expose_engine({ common: common_engine() });
|
||||
loaded = load_bundle(message.bundle);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user