Load assets tp command (need to make a universal method, this sucks)
This commit is contained in:
parent
6e07fa6a75
commit
a8ac960d60
@ -65,6 +65,8 @@ export default class TeleportCommandEvent {
|
||||
// Update character in CharacterManager
|
||||
CharacterManager.initCharacter(this.socket.character)
|
||||
|
||||
io.to(socket.id).emit('zone:character:load_assets', zone.id);
|
||||
|
||||
this.socket.emit('zone:teleport', {
|
||||
zone,
|
||||
characters: CharacterManager.getCharactersInZone(zone)
|
||||
|
@ -23,8 +23,6 @@ interface IResponse {
|
||||
export default function (socket: TSocket, io: Server) {
|
||||
socket.on('zone:character:join', async (data: IPayload, callback: (response: IResponse) => void) => {
|
||||
try {
|
||||
console.log(`---User ${socket.character?.id} has requested zone.`)
|
||||
|
||||
if (!socket.character) return
|
||||
|
||||
if (!data.zoneId) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user