mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 22:32:52 +08:00
Kick player if they use an invalid resources folder
This commit is contained in:
parent
b2955274ab
commit
a045142a41
@ -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