Skip to content

Conversation

@Mqrius
Copy link
Contributor

@Mqrius Mqrius commented Dec 14, 2025

What

The QuarkTechSuite helmet calls functions to modify the gamestate during both logical sides in the onArmorTick. This can cause a number of issues and is generally discouraged.

Outcome

This PR limits the mutations (food, air, negative effects) to the serverside only.

Additional Information

I ran into this when making a mixin for this bug: TerraFirmaGreg-Team/Modpack-Modern#1640

I noticed supplyFood gets called during the clientside ticks as well as the serverside ticks, and the clientside ticks can't properly check if the player is in a PlayerRevive:bleeding state or not.

While that is all a mod compatibility stuff that brings it to light the actual bug in GTm is a standalone latent bug.

I worked around the bug in TerraFirmaGreg-Team/Core-Modern#216 by checking for clientside in the mixin and not running supplyFood at all on clientside, which worked fine.

@Mqrius Mqrius requested a review from a team as a code owner December 14, 2025 04:31
@TarLaboratories TarLaboratories added type: bugfix General bug fixes Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. labels Dec 17, 2025
@jurrejelle jurrejelle enabled auto-merge (squash) December 17, 2025 10:27
@jurrejelle jurrejelle merged commit 4086c04 into GregTechCEu:1.20.1 Dec 17, 2025
4 checks passed
@Mqrius Mqrius deleted the patch-1 branch December 17, 2025 12:19
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.

4 participants