Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion metaverse_modules/spawner/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default e => {
live = false;
});

const mobData = await mobManager.loadData(appUrls);
const mobData = await mobManager.loadData(app, appUrls);
if (!live) return;

const procGenInstance = procGenManager.getInstance(seed, range);
Expand Down Expand Up @@ -59,5 +59,7 @@ export default e => {
}
});

app.getPhysicsObjects = () => mobManager.getPhysicsObjects();

return app;
};
6 changes: 3 additions & 3 deletions metaversefile-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -1038,7 +1038,7 @@ export default () => {
}

// mob
for (const mob of mobManager.mobs) {
for (const mob of mobManager.getMobs()) {
const mobPhysicsObjects = mob.getPhysicsObjects();
for (const mobPhysicsObject of mobPhysicsObjects) {
if (mobPhysicsObject.physicsId === physicsId) {
Expand Down Expand Up @@ -1074,7 +1074,7 @@ export default () => {
}

// mob
for (const mob of mobManager.mobs) {
for (const mob of mobManager.getMobs()) {
const mobPhysicsObjects = mob.getPhysicsObjects();
for (const mobPhysicsObject of mobPhysicsObjects) {
if (mobPhysicsObject.physicsId === physicsId) {
Expand Down Expand Up @@ -1113,7 +1113,7 @@ export default () => {
}

// mob
for (const mob of mobManager.mobs) {
for (const mob of mobManager.getMobs()) {
const mobPhysicsObjects = mob.getPhysicsObjects();
for (const mobPhysicsObject of mobPhysicsObjects) {
if (mobPhysicsObject.physicsId === physicsId) {
Expand Down
Loading