forked from noxious/server
Redundant checks
This commit is contained in:
parent
4cf87536ce
commit
f3e0d6e03a
@ -25,8 +25,8 @@ class CharacterTeleportService {
|
||||
const { socket, targetMap, mapCharacter } = await this.validateTeleportRequest(characterId, options)
|
||||
if (!socket || !targetMap || !mapCharacter) return false
|
||||
|
||||
const currentMapId = mapCharacter.character.map?.id
|
||||
const currentMap = MapManager.getMapById(currentMapId!)
|
||||
const currentMapId = mapCharacter.character.map.id
|
||||
const currentMap = MapManager.getMapById(currentMapId)
|
||||
const io = SocketManager.getIO()
|
||||
|
||||
// Update character position and map
|
||||
|
Loading…
x
Reference in New Issue
Block a user