Skip to content

AutoBuff: Better inventory open state checks + AutoSoup autostack#7894

Open
DaviSMoura wants to merge 2 commits intoCCBlueX:nextgenfrom
DaviSMoura:feat/auto-soup-ignore-inv
Open

AutoBuff: Better inventory open state checks + AutoSoup autostack#7894
DaviSMoura wants to merge 2 commits intoCCBlueX:nextgenfrom
DaviSMoura:feat/auto-soup-ignore-inv

Conversation

@DaviSMoura
Copy link
Copy Markdown

@DaviSMoura DaviSMoura commented Feb 13, 2026

Better checks do open inventory when using AutoBuff:

  • Ignore Open Inventory check
  • Stop buff when inventory is open client side (nice to soup recraft)
  • Stop buff when inventory is open client or server side

And AutoSoup auto stack module :)

@DaviSMoura DaviSMoura changed the title AutoBuff: Option to ignore inventory open state AutoBuff: Better inventory open state checks + AutoSoup autostack Feb 13, 2026
@MukjepScarlet MukjepScarlet requested review from 1zun4 and MukjepScarlet and removed request for MukjepScarlet February 13, 2026 09:00
@1zun4 1zun4 added this to the 0.37.0 milestone Mar 25, 2026
Comment on lines +87 to +90
when {
DropAfterUse.enabled -> handleDropAfterUse(slot)
SoupStacker.enabled -> handleSoupStacker(slot)
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this mean this will only run SoupStacker if DropAfterUse is disabled. Feels a bit odd, shouldn't this be a mode then?

Comment on lines +109 to +121
internal val ignoreInventoryOpen by boolean("IgnoreInventoryOpen", false)
internal val inventoryCheckMode by enumChoice("InventoryCheckMode", InventoryCheckMode.SERVER_SIDE)

enum class InventoryCheckMode(override val tag: String) : Tagged {
SERVER_SIDE("ServerSide"),
CLIENT_SIDE("ClientSide")
}

internal val isInventoryOpenForCheck: Boolean
get() = when (inventoryCheckMode) {
InventoryCheckMode.SERVER_SIDE -> InventoryManager.isInventoryOpenServerSide
InventoryCheckMode.CLIENT_SIDE -> isInInventoryScreen
}
Copy link
Copy Markdown
Member

@1zun4 1zun4 Mar 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is broken. Revert this change. The idea of isInventoryOpenServerSide is that a server only knows our inventory is open if we have clicked. This means the module won't do anything until we clicked a slot...

Copy link
Copy Markdown
Member

@1zun4 1zun4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please adjust the code to my comments.

@1zun4 1zun4 modified the milestones: 0.37.0, 0.38.0 Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants