Handler created for AddItemToTradeWindowMsg

This commit is contained in:
2024-03-29 08:34:29 -04:00
parent a70585448f
commit 3f1385dd33
5 changed files with 108 additions and 85 deletions
-15
View File
@@ -21,21 +21,6 @@ public enum TradeManager {
TRADEMANAGER;
public static void addItemToTradeWindow(AddItemToTradeWindowMsg msg, ClientConnection origin) {
PlayerCharacter source = origin.getPlayerCharacter();
if (source == null || !source.isAlive())
return;
try {
source.charItemManager.addItemToTradeWindow(msg);
} catch (Exception e) {
Logger.error(e);
}
}
public static void addGoldToTradeWindow(AddGoldToTradeWindowMsg msg, ClientConnection origin) {
PlayerCharacter source = origin.getPlayerCharacter();