mirror of
https://github.com/Melledy/Nebula.git
synced 2026-09-19 09:09:54 +02:00
Rework and optimize inventory
`GameItem`s and `GameResource`s are now deprecated, they are stored as regular `ItemParamMap`s in the `Inventory` class instead. This is to reduce database load when loading a player.
This commit is contained in:
@@ -147,6 +147,7 @@ public class PlayerModule extends GameContextModule {
|
||||
* @param uid
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
public synchronized boolean deletePlayer(int uid) {
|
||||
// Make sure player is not online when we are deleting the player
|
||||
Player player = this.getCachedPlayerByUid(uid);
|
||||
|
||||
Reference in New Issue
Block a user