Skip to content

Fix the GTCEu EMI plugin failing to initialize on dedicated servers#4935

Merged
jurrejelle merged 1 commit into
GregTechCEu:1.21from
carbonatek:dedicated-emi-fix
Jun 17, 2026
Merged

Fix the GTCEu EMI plugin failing to initialize on dedicated servers#4935
jurrejelle merged 1 commit into
GregTechCEu:1.21from
carbonatek:dedicated-emi-fix

Conversation

@carbonatek

Copy link
Copy Markdown
Contributor

What

This check is 1.21 specific, it is not present in 1.20.1, checked the branch.
When connected to a dedicated server, in BreweryLogic#getPotionBrewing(), the GTCEu.isClientThread() check falls through, and GTCEu.getMinecraftServer() gets called, which returns null, because the client is not connected to an internal server.

Implementation Details

The check has been rewritten to check if GTCEu.getMinecraftServer() is not null, and if it is, runs the client side check.

AI Usage

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

Outcome

Players or people testing out the 1.21 branch can see recipes when testing on a dedicated server.

How Was This Tested

Ran a dedicated server with just GT; then after observing the issue on the client, made this change, put the fixed jar on both the server and client, and observed the EMI plugin initializing correctly.

@carbonatek carbonatek requested a review from a team as a code owner June 16, 2026 06:48
@github-actions github-actions Bot added the 1.21 label Jun 16, 2026
@screret

screret commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

does this still work if you launch a dedicated server and connect to it? and also locally

@carbonatek

Copy link
Copy Markdown
Contributor Author

does this still work if you launch a dedicated server and connect to it? and also locally

Yes. If you connect to a dedicated server, it works fine, and so does just singleplayer.

@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 Jun 17, 2026
@jurrejelle jurrejelle enabled auto-merge (squash) June 17, 2026 11:27
@jurrejelle jurrejelle merged commit 27d1cd3 into GregTechCEu:1.21 Jun 17, 2026
5 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.21 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.

3 participants