Kick player if they use an invalid resources folder

This commit is contained in:
Melledy 2022-05-05 17:17:27 -07:00
parent eaf0dd0b3b
commit 414fad9079

View File

@ -37,6 +37,13 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler {
return;
}
// Make sure resources folder is set
if (!GameData.getAvatarDataMap().containsKey(avatarId)) {
Grasscutter.getLogger().error("No avatar data found! Please check your ExcelBinOutput folder.");
session.close();
return;
}
String nickname = req.getNickName();
if (nickname == null) {
nickname = "Traveler";