Skip to content

Commit 5041f46

Browse files
authored
Update Apps.js
1 parent 347a708 commit 5041f46

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

src/core/systems/Apps.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ export class Apps extends System {
196196
if (internalEvents.includes(name)) {
197197
return console.error(`apps cannot send internal events (${name})`)
198198
}
199-
if (!world.network.isServer) {
200-
throw new Error('sendTo can only be called on the server')
201-
}
202199
const player = world.entities.get(playerId)
203200
if (!player) return
204201
const event = [entity.data.id, entity.blueprint.version, name, data]

0 commit comments

Comments
 (0)