Fixed item shortcuts removed during player login.

Contributed by flanagak.
This commit is contained in:
MobiusDev
2017-12-17 04:20:44 +00:00
parent acaf4ed7f0
commit 4cdd336cdb
5 changed files with 75 additions and 20 deletions

View File

@@ -6776,6 +6776,9 @@ public final class L2PcInstance extends L2Playable
player.restoreItemReuse();
// Restore player shortcuts
player.restoreShortCuts();
// Initialize status update cache
player.initStatusUpdateCache();
@@ -6927,7 +6930,6 @@ public final class L2PcInstance extends L2Playable
* <ul>
* <li>Skills</li>
* <li>Macros</li>
* <li>Short-cuts</li>
* <li>Henna</li>
* <li>Teleport Bookmark</li>
* <li>Recipe Book</li>
@@ -6944,9 +6946,6 @@ public final class L2PcInstance extends L2Playable
// Retrieve from the database all macroses of this L2PcInstance and add them to _macros.
_macros.restoreMe();
// Retrieve from the database all shortCuts of this L2PcInstance and add them to _shortCuts.
_shortCuts.restoreMe();
// Retrieve from the database all henna of this L2PcInstance and add them to _henna.
restoreHenna();
@@ -6969,6 +6968,18 @@ public final class L2PcInstance extends L2Playable
restorePetInventoryItems();
}
/**
* Restores:
* <ul>
* <li>Short-cuts</li>
* </ul>
*/
private void restoreShortCuts()
{
// Retrieve from the database all shortCuts of this L2PcInstance and add them to _shortCuts.
_shortCuts.restoreMe();
}
/**
* Restore recipe book data for this L2PcInstance.
* @param loadCommon