diff options
author | NetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com> | 2023-10-15 08:52:24 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-15 14:52:24 +0200 |
commit | 4b7349f50ac1cdb14ac89fef0d697a6e943f586f (patch) | |
tree | d2dbf0d8a0f347c35d7db8b1e6611779d9fef8a7 /src/main/java/at/hannibal2/skyhanni/data | |
parent | 0303c7985ab1232182abed3c8f635679a6ac6531 (diff) | |
download | skyhanni-4b7349f50ac1cdb14ac89fef0d697a6e943f586f.tar.gz skyhanni-4b7349f50ac1cdb14ac89fef0d697a6e943f586f.tar.bz2 skyhanni-4b7349f50ac1cdb14ac89fef0d697a6e943f586f.zip |
Feature: Crimson Isle Fetch Quest Helper (#437)
Added Quest Item Helper. #437
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/data')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt b/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt index 64bebee7e..9e2e4a7fa 100644 --- a/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt +++ b/src/main/java/at/hannibal2/skyhanni/data/SackAPI.kt @@ -11,6 +11,7 @@ import at.hannibal2.skyhanni.features.inventory.SackDisplay import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.ItemUtils.name +import at.hannibal2.skyhanni.utils.LorenzUtils import at.hannibal2.skyhanni.utils.LorenzUtils.editCopy import at.hannibal2.skyhanni.utils.NEUInternalName import at.hannibal2.skyhanni.utils.NEUInternalName.Companion.asInternalName @@ -285,6 +286,8 @@ object SackAPI { return sackData[item] ?: return SackItem(0, 0, -1) } + fun commandGetFromSacks(item: String, amount: Int) = LorenzUtils.sendCommandToServer("gfs $item $amount") + private fun saveSackData() { ProfileStorageData.sackProfiles?.sackContents = sackData SkyHanniMod.configManager.saveSackData("saving-data") |