1
0
mirror of synced 2024-09-24 03:08:26 +02:00

Update game.ts

This commit is contained in:
ghkkk090 2022-08-07 20:19:42 +07:00 committed by GitHub
parent ed05c81c55
commit 142df1c66f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1173,6 +1173,17 @@ export default class GameModule extends Module {
userItemId: true
}
})
let wsString = "";
let wsFont = 0;
if(user.cars[0].windowStickerString !== null && user.cars[0].windowStickerString !== undefined && user.cars[0].windowStickerString !== ''){
wsString = user.cars[0].windowStickerString;
wsFont = user.cars[0].windowStickerFont;
}
else{
wsString = '';
wsFont = 0;
}
let msg = {
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
@ -1182,8 +1193,8 @@ export default class GameModule extends Module {
carStates,
// 5 cars in-game, 200 cars on terminal
cars: user.cars.slice(0, body.maxCars),
windowStickerString: user.cars[0].windowStickerString,
windowStickerFont: user.cars[0].windowStickerFont,
windowStickerString: wsString,
windowStickerFont: wsFont,
userId: user.id,
banapassportAmId: 1,
mbId: 1,