GM event fixes

This commit is contained in:
2024-09-21 00:42:08 +02:00
parent 0a629bf80f
commit 6b2433f814
20 changed files with 105 additions and 72 deletions

View File

@ -27,8 +27,7 @@ export default class GMSpriteDeleteEvent {
private async handleSpriteDelete(data: Payload, callback: (response: boolean) => void): Promise<void> {
const character = CharacterManager.getCharacterFromSocket(this.socket);
if (character?.role !== 'gm') {
callback(false)
return
return callback(false)
}
try {