Skip to content

Conversation

@ghzdude
Copy link
Contributor

@ghzdude ghzdude commented May 14, 2025

What

Fixes an issue where getAvailableHandlers() was being called on the client side, overwriting the connected inventory with an invalid handler. This would also overwrite any attempts to sync the connected inventory through initial sync. The connected inventory should only be computed server-side, and only the reference returned on the client-side.

Implementation Details

the connected inventory should now only be calculated on the server side
connected inventory searching is now split off into it's own method
connected inventory is synced on initial sync
add server check for when writing data

Outcome

the error "Here are x slots, but expected y" from ModularUI should now be fixed

split getting available handlers
only write data if on server
@ghzdude ghzdude requested a review from a team as a code owner May 14, 2025 02:53
@ghzdude ghzdude added type: bug Something isn't working ignore changelog PR should not be added to the changelog. labels May 14, 2025
@ghzdude ghzdude merged commit 5ac270b into GregTechCEu:master May 17, 2025
3 checks passed
@ghzdude ghzdude deleted the gh/fix-crafting-station-sync branch May 17, 2025 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore changelog PR should not be added to the changelog. type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants