Skip to content

Remove BlockEntity Check in MinerLogic#4488

Merged
jurrejelle merged 1 commit intoGregTechCEu:1.20.1from
lilpaladin1:minerlogic-blockentity-check-removal
Jan 24, 2026
Merged

Remove BlockEntity Check in MinerLogic#4488
jurrejelle merged 1 commit intoGregTechCEu:1.20.1from
lilpaladin1:minerlogic-blockentity-check-removal

Conversation

@lilpaladin1
Copy link
Copy Markdown
Contributor

What

In MinerLogic's getBlockstoMine() there's a check to see if a block is valid to actually be mined. 2 out of 3 checks are fine, but there's one check to see if there isn't a BlockEntity at that position and that ones doesn't really feel like there's a justification for that one, especially in cases where someone DELIBERATELY tags a block that has a BlockEntity as an Ore... which is me, I'm that someone.

Implementation Details

Simply removes the BlockEntity check while keeping the other 2 checks.

Outcome

Now any block that is tagged with Ore and has a BlockEntity should be mineable.

Additional Information

I made this PR because I was doing something that was conflicting with this BlockEntity check because it was the only reasonable way to actually do the thing I wanted to do.

Potential Compatibility Issues

I can probably think of a really stupid edge case with containers but at the same time the other 2 remaining checks should stop that from happening unless that tag was deliberately put in place.

@lilpaladin1 lilpaladin1 requested a review from a team as a code owner January 23, 2026 07:18
@lilpaladin1 lilpaladin1 changed the title Remove BlockEntity Check in MinerLogic [1.20] Remove BlockEntity Check in MinerLogic Jan 23, 2026
@lilpaladin1 lilpaladin1 changed the title [1.20] Remove BlockEntity Check in MinerLogic Remove BlockEntity Check in MinerLogic Jan 23, 2026
@jurrejelle jurrejelle added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Jan 24, 2026
Copy link
Copy Markdown
Contributor

@jurrejelle jurrejelle left a comment

Choose a reason for hiding this comment

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

If someone tags their blockEntity's block with Tags.Blocks.ORES and they don't want it to be mined, that's their problem I feel

@jurrejelle jurrejelle merged commit 02bfeb4 into GregTechCEu:1.20.1 Jan 24, 2026
6 checks passed
@lilpaladin1 lilpaladin1 deleted the minerlogic-blockentity-check-removal branch January 24, 2026 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants