Skip to content

Move machine use to correct use event#5155

Merged
gustovafing merged 3 commits into
1.21from
gus/fix-usewithoutitem
Jul 26, 2026
Merged

Move machine use to correct use event#5155
gustovafing merged 3 commits into
1.21from
gus/fix-usewithoutitem

Conversation

@gustovafing

@gustovafing gustovafing commented Jul 20, 2026

Copy link
Copy Markdown
Member

What

Machine::onUse, which is called when a machine is used without an item or when the item interaction passes, was being called from MetaMachineBlock::useItemOn instead of MetaMachineBlock::useWithoutItem. This moves it to the correct use function.

  • No AI driven tools were used for this pull request.

@gustovafing
gustovafing requested a review from a team as a code owner July 20, 2026 11:18
@gustovafing gustovafing added ignore changelog PR should not be added to the changelog. type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Ignore Version Sync Do not append this issue to the version sync issue tracker. labels Jul 20, 2026
@github-actions github-actions Bot added the Tests: Passed Game Tests have passed on this PR label Jul 20, 2026
Comment thread src/main/java/com/gregtechceu/gtceu/api/block/MetaMachineBlock.java Outdated
@gustovafing
gustovafing merged commit f05af67 into 1.21 Jul 26, 2026
4 checks passed
@gustovafing
gustovafing deleted the gus/fix-usewithoutitem branch July 26, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21 ignore changelog PR should not be added to the changelog. Ignore Version Sync Do not append this issue to the version sync issue tracker. Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. Tests: Passed Game Tests have passed on this PR type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants