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)
|
const { socket, targetMap, mapCharacter } = await this.validateTeleportRequest(characterId, options)
|
||||||
if (!socket || !targetMap || !mapCharacter) return false
|
if (!socket || !targetMap || !mapCharacter) return false
|
||||||
|
|
||||||
const currentMapId = mapCharacter.character.map?.id
|
const currentMapId = mapCharacter.character.map.id
|
||||||
const currentMap = MapManager.getMapById(currentMapId!)
|
const currentMap = MapManager.getMapById(currentMapId)
|
||||||
const io = SocketManager.getIO()
|
const io = SocketManager.getIO()
|
||||||
|
|
||||||
// Update character position and map
|
// Update character position and map
|
||||||
|
Loading…
x
Reference in New Issue
Block a user