Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash when configuring ender tank covers #3562

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

RecursivePineapple
Copy link
Contributor

@RecursivePineapple RecursivePineapple commented Nov 27, 2024

The client was calling DimensionManager.getWorld on the client when it shouldn't have been.

The fix was to move the private/public toggling code into the cover update method, so that it gets called on the server instead of the client. This is slightly less efficient, but the code is trivial so it doesn't matter.

This change doesn't have any side effects because the relevant code is only used in the ender tank cover.

This was tested by starting a server and moving fluids between two super tanks. I repeatedly toggled the public/private buttons without closing the cover UI to make sure the change actually took effect.

Fixes: GTNewHorizons/GT-New-Horizons-Modpack#17863 and GTNewHorizons/GT-New-Horizons-Modpack#17991

The client was calling DimensionManager.getWorld on the client when it
shouldn't have been.

The fix was to move the private/public toggling code into the cover
update method, so that it gets called on the server instead of the
client. This is slightly less efficient, but the code is trivial so it
doesn't matter.

This change doesn't have any side effects because the relevant code is
only used in the ender tank cover.
@RecursivePineapple RecursivePineapple added the bug fix Fix a bug. Please link it in the PR. label Nov 27, 2024
@RecursivePineapple RecursivePineapple requested a review from a team November 27, 2024 19:42
@serenibyss serenibyss added bug fix Fix a bug. Please link it in the PR. and removed bug fix Fix a bug. Please link it in the PR. labels Nov 27, 2024
@serenibyss serenibyss merged commit d6076e7 into master Nov 27, 2024
6 of 7 checks passed
@serenibyss serenibyss deleted the fix-ender-tank-covers-2 branch November 27, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug fix Fix a bug. Please link it in the PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ender fluid link cover crashing client when toggling private mode
2 participants