forked from noxious/server
OOP is my passion ( ͡° ͜ʖ ͡°)
This commit is contained in:
@ -5,9 +5,9 @@ import { Map } from '#entities/map'
|
||||
import { MapEffect } from '#entities/mapEffect'
|
||||
import { MapEventTile } from '#entities/mapEventTile'
|
||||
import { MapEventTileTeleport } from '#entities/mapEventTileTeleport'
|
||||
import { PlacedMapObject } from '#entities/placedMapObject'
|
||||
import mapManager from '#managers/mapManager'
|
||||
import MapRepository from '#repositories/mapRepository'
|
||||
import { PlacedMapObject } from '#entities/placedMapObject'
|
||||
|
||||
interface IPayload {
|
||||
mapId: UUID
|
||||
@ -83,7 +83,7 @@ export default class MapUpdateEvent extends BaseEvent {
|
||||
|
||||
if (tile.teleport) {
|
||||
const teleport = new MapEventTileTeleport()
|
||||
.setToMap((await MapRepository.getById(tile.teleport.toMapId))!)
|
||||
.setToMap(await MapRepository.getById(tile.teleport.toMapId))
|
||||
.setToPositionX(tile.teleport.toPositionX)
|
||||
.setToPositionY(tile.teleport.toPositionY)
|
||||
.setToRotation(tile.teleport.toRotation)
|
||||
|
Reference in New Issue
Block a user