Commit a045142a authored by Melledy's avatar Melledy
Browse files

Kick player if they use an invalid resources folder

parent b2955274
...@@ -37,6 +37,13 @@ public class HandlerSetPlayerBornDataReq extends PacketHandler { ...@@ -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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment