Initial warehouse refactor

This commit is contained in:
MagicBot committed 2024-03-15 10:01:22 -04:00
1 parent 92f53b00b8
commit 97fa583f65
15 files changed
+268 -385

No files matched your search

+1 -1
View File
@@ -359,7 +359,7 @@ public class CharacterItemManager {
return false;
}
} else {
if (!Warehouse.withdraw(warehouse, (PlayerCharacter) this.absCharacter, this.getGoldInventory().getItemBase(), amount * -1, true, true)) {
if (!Warehouse.withdraw(warehouse, (PlayerCharacter) this.absCharacter, Enum.ResourceType.GOLD, amount * -1, true, true)) {
ErrorPopupMsg.sendErrorPopup((PlayerCharacter) this.absCharacter, 203);
return false;