Skip to content

Fix MTEBuffer handling of heterogeneous target inventories - #7850

Open
lfpraca wants to merge 2 commits into
GTNewHorizons:masterfrom
lfpraca:master
Open

Fix MTEBuffer handling of heterogeneous target inventories#7850
lfpraca wants to merge 2 commits into
GTNewHorizons:masterfrom
lfpraca:master

Conversation

@lfpraca

@lfpraca lfpraca commented Aug 24, 2026

Copy link
Copy Markdown

Summary

The MTEBuffer implementation used to check if any available slot in the target inventory had enough space for a stack to be pushed.

This created false negatives if the inventory had enough space but not in a single slot, and created false positives if any slot had enough space but there wasn't enough space compatible with the item to be pushed, this false positive made it so that partial stacks could be pushed, breaking automation.

This PR fixes the handling to check the available spaces in all slots where the stack could be pushed, checking if that particular stack is compatible with the available space.

This fixes GTNewHorizons/GT-New-Horizons-Modpack#24629

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@lfpraca lfpraca changed the title Fix MTEBuffer handling of heterogenous target inventories Fix MTEBuffer handling of heterogeneous target inventories Aug 24, 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.

Chest Buffer / Regulator isn't working properly

1 participant