From eb5fb42353c40f39f254208018c6d7738ddc1d1c Mon Sep 17 00:00:00 2001 From: Manuel Martin Date: Thu, 12 Oct 2023 15:54:18 +0200 Subject: [PATCH] Check for spawn permissions when grabbing the object spawner --- src/bit-systems/object-spawner.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bit-systems/object-spawner.ts b/src/bit-systems/object-spawner.ts index a532ccd945..a8426d0e64 100644 --- a/src/bit-systems/object-spawner.ts +++ b/src/bit-systems/object-spawner.ts @@ -13,6 +13,8 @@ export enum OBJECT_SPAWNER_FLAGS { } function* spawnObjectJob(world: HubsWorld, spawner: EntityID) { + if (!APP.hubChannel!.can("spawn_and_move_media")) return; + const spawned = createNetworkedMedia(world, { src: APP.getString(ObjectSpawner.src[spawner])!, recenter: true,