Перейти к содержимому
Mineforgian

Create TFMG: Network Fix

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

Загрузки
251
Подписчики
3
Обновлён
15 апреля 2026 г.
Лицензия
All-Rights-Reserved

Опубликован 13 апреля 2026 г.

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.

Ченджлог

1.0.1Релиз1.20.1 · 15 апреля 2026 г.
  • Crash on startup with TFMG 1.0.2f — Mixin used @Inject targeting writeAdditional(FriendlyByteBuf) / readAdditional(FriendlyByteBuf) on IndustrialBlastingRecipe and VatMachineRecipe, but these methods are not declared in those classes — they are inherited from Create's ProcessingRecipe. Mixin could not find the injection target, causing MixinTransformerError.
  • Changed approach: instead of @Inject, mixin now directly overrides the inherited methods. This correctly adds the missing network serialization without requiring the target class to explicitly declare the methods.
1.0.0Релиз1.20.1 · 13 апреля 2026 г.
  • initial mod

Комментарии

Загружаем…