forked from noxious/server
More TP work
This commit is contained in:
@ -10,6 +10,8 @@ export class CharacterMoveService {
|
||||
public async updatePosition(character: ExtendedCharacter, position: { x: number; y: number }, newZoneId?: number): Promise<void> {
|
||||
const oldZoneId = character.zoneId
|
||||
|
||||
console.log('newZoneId', newZoneId)
|
||||
|
||||
Object.assign(character, {
|
||||
positionX: position.x,
|
||||
positionY: position.y,
|
||||
@ -30,7 +32,7 @@ export class CharacterMoveService {
|
||||
positionX: position.x,
|
||||
positionY: position.y,
|
||||
rotation: character.rotation,
|
||||
zoneId: character.zoneId
|
||||
zoneId: newZoneId
|
||||
}
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user