From 70278374e7c3f17358b06584a734ce9d36313337 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Fri, 25 Aug 2023 12:57:21 -0400 Subject: [PATCH] manager init moved to the top of method. --- src/engine/objects/PlayerCharacter.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 48c75a0f..7d7baaa5 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -211,8 +211,11 @@ public class PlayerCharacter extends AbstractCharacter { * ResultSet Constructor */ public PlayerCharacter(ResultSet rs) throws SQLException { + super(rs, true); + this.charItemManager = new CharacterItemManager(this); + this.runes = DbManager.CharacterRuneQueries.GET_RUNES_FOR_CHARACTER(this.getObjectUUID()); int accountID = rs.getInt("parent"); this.account = DbManager.AccountQueries.GET_ACCOUNT(accountID); @@ -4560,10 +4563,6 @@ public class PlayerCharacter extends AbstractCharacter { @Override public void runAfterLoad() { - // Init inventory - - this.charItemManager = new CharacterItemManager(this); - Bounds playerBounds = Bounds.borrow(); playerBounds.setBounds(this.getLoc()); this.setBounds(playerBounds);