promotional bannermobile promotional banner
premium banner
Fixes TFMG recipe fields not syncing over the network, causing JEI to display vat recipes without machine modules on dedicated servers.

Description

On dedicated servers, several TFMG recipe types do not serialize their custom fields into the network buffer. When the server sends recipes to clients, these fields arrive empty:

  • VatMachineRecipe loses machines, allowedVatTypes, and minSize — JEI displays vat recipes without machine modules (mixer, centrifuge, electrodes) and without material overlays (firebrick, cast iron).
  • IndustrialBlastingRecipe loses hotAirUsage — blast furnace recipes show incorrect hot air requirements.

This only affects dedicated servers. In singleplayer, recipes are loaded directly from JSON, so all fields are present.

How it works

The mod uses Mixin to inject into the writeAdditional(FriendlyByteBuf) and readAdditional(FriendlyByteBuf) methods of both recipe classes. The missing fields are appended at the tail of the network buffer. No original TFMG code is replaced — the existing logic runs as-is.