diff --git a/utils/GunSmith/GunSmith.js b/utils/GunSmith/GunSmith.js index 11186ce5..f7cc8107 100644 --- a/utils/GunSmith/GunSmith.js +++ b/utils/GunSmith/GunSmith.js @@ -428,7 +428,9 @@ function createReplica(path, afterMap = false) { path, type: 'map.on' } - currentGun.send(msg) + isReady().then(() => { + currentGun.send(msg) + }) } else { // eslint-disable-next-line no-multi-assign const listeners = @@ -441,7 +443,9 @@ function createReplica(path, afterMap = false) { path, type: 'on' } - currentGun.send(msg) + isReady().then(() => { + currentGun.send(msg) + }) } return this