Character storage won't get initialize at first time on server

This commit is contained in:
Đạt Nhân Trương
2022-08-05 19:33:15 +07:00
parent 6901b5133b
commit 571d804f50

View File

@@ -8297,6 +8297,15 @@ public class Character extends AbstractCharacterObject {
}
}
/*
* Bugs when player first time into server
* The storage won't get initialize
* and must wait until next login
*/
if (getStorage() == null) {
Server.getInstance().getWorld(world).loadAccountStorage(accountid);
}
con.commit();
return true;
} catch (Exception e) {