summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-29 22:27:01 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-02-29 22:27:01 +0100
commit2d7f707c2c7ee59ef76f39171f91d7872e83f028 (patch)
treeb5d0474fca0fcf253ffd2b790b79310e2c4dad8e /src/main/java/at/hannibal2/skyhanni/features
parentbc1a28285226db06109b0d39ec4242db1edb8a6d (diff)
downloadskyhanni-2d7f707c2c7ee59ef76f39171f91d7872e83f028.tar.gz
skyhanni-2d7f707c2c7ee59ef76f39171f91d7872e83f028.tar.bz2
skyhanni-2d7f707c2c7ee59ef76f39171f91d7872e83f028.zip
Moved "max items with purse" into bazaar config
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/inventory/MaxPurseItems.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/inventory/MaxPurseItems.kt b/src/main/java/at/hannibal2/skyhanni/features/inventory/MaxPurseItems.kt
index f3ca86a34..b0cb8d68a 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/inventory/MaxPurseItems.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/inventory/MaxPurseItems.kt
@@ -15,6 +15,7 @@ import net.minecraft.client.Minecraft
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
class MaxPurseItems {
+ private val config get() = SkyHanniMod.feature.bazaar
private val patternGroup = RepoPattern.group("inventory.maxpurse")
private val orderPattern by patternGroup.pattern(
@@ -36,7 +37,6 @@ class MaxPurseItems {
private var buyOrderPrice: Double? = null
private var instantBuyPrice: Double? = null
- private val config get() = SkyHanniMod.feature.inventory
private fun getPrices() {
for (item in Minecraft.getMinecraft().thePlayer.openContainer.inventory) {
@@ -84,7 +84,7 @@ class MaxPurseItems {
(currentPurse / it).toInt()
} ?: 0
- config.purseItemsPos.renderStrings(
+ config.maxPurseItemsPosition.renderStrings(
listOf(
"§eWith your current purse, you can buy order",
"§e${buyOrders.addSeparators()}x of this item with your purse (at top order +0.1)",