forked from noxious/server
Char. join fix
This commit is contained in:
parent
d2c52ea0c0
commit
10dc9df8a9
@ -20,7 +20,7 @@ interface IResponse {
|
|||||||
* @param io
|
* @param io
|
||||||
*/
|
*/
|
||||||
export default function (socket: TSocket, io: Server) {
|
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 {
|
try {
|
||||||
if (!socket.characterId) return
|
if (!socket.characterId) return
|
||||||
const character = CharacterManager.getCharacterFromSocket(socket);
|
const character = CharacterManager.getCharacterFromSocket(socket);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user