Character storage won't get initialize at first time on server
This commit is contained in:
@@ -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();
|
con.commit();
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user