Skip to content

Fix MachineDefinition.getBlockEntityType()'s generic being too broad#4903

Open
screret wants to merge 1 commit into
GregTechCEu:1.20.1from
screret:sc/fix-machine-be-type-supplier-generic
Open

Fix MachineDefinition.getBlockEntityType()'s generic being too broad#4903
screret wants to merge 1 commit into
GregTechCEu:1.20.1from
screret:sc/fix-machine-be-type-supplier-generic

Conversation

@screret
Copy link
Copy Markdown
Contributor

@screret screret commented Jun 2, 2026

Why

Just so MachineModel doesn't need to check if the BEs it gets are machines

Implementation Details

Actual fix is the last change in MachineBuilder (the one that adds <MetaMachine> to the block entity builder creation).
The rest are just making generic types stricter.

AI Usage

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

Outcome

MachineModel doesn't need to check if the BEs it's given are actually machines. -7 lines of code.

How Was This Tested

Ran game, still works.

Just so MachineModel doesn't need to check if the BEs it gets are machines
@screret screret requested a review from a team as a code owner June 2, 2026 13:13
@github-actions github-actions Bot added the 1.20.1 label Jun 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants