Char. join fix

This commit is contained in:
Dennis Postma 2024-09-21 22:18:08 +02:00
parent d2c52ea0c0
commit 10dc9df8a9

View File

@ -20,7 +20,7 @@ interface IResponse {
* @param io
*/
export default function (socket: TSocket, io: Server) {
socket.on('zone:character:join', async (data: IPayload, callback: (response: IResponse) => void) => {
socket.on('zone:character:join', async (callback: (response: IResponse) => void) => {
try {
if (!socket.characterId) return
const character = CharacterManager.getCharacterFromSocket(socket);