mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-24 00:11:31 +00:00
Kick player if they use an invalid resources folder
This commit is contained in:
parent
eaf0dd0b3b
commit
414fad9079
@ -37,6 +37,13 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler {
|
|||||||
return;
|
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();
|
String nickname = req.getNickName();
|
||||||
if (nickname == null) {
|
if (nickname == null) {
|
||||||
nickname = "Traveler";
|
nickname = "Traveler";
|
||||||
|
Loading…
Reference in New Issue
Block a user