ViaVersion Recipe Fix

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.0.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/viaversion-recipe-fix
资源信息

Minecraft 版本: 1.21.10 1.21.11 26.1

平台: fabric

标签: utility

资源介绍

ViaVersion Recipe Fix

A server-side Fabric mod that prevents Fabric API's recipe sync packets from crashing clients connecting via ViaVersion/ViaBackwards with non-native protocol versions.

Problem

Since Minecraft 1.21.2, vanilla no longer syncs all recipes to clients. Fabric API added an opt-in recipe sync API (fabric-recipe-api-v1) for mods that need client-side recipe data (e.g. JEI). When a server uses this alongside ViaFabric and ViaBackwards, clients on older Minecraft versions crash with:

Failed to decode packet 'clientbound/minecraft:custom_payload'
Caused by: Tried to read NBT tag that was too big

Neither ViaVersion nor ViaBackwards translates Fabric API's custom RecipeSyncPayloadS2C packet, causing the client to misparse the data.

Solution

This mod intercepts recipe sync at the server level and skips sending the packet to players whose protocol version (detected via ViaVersion API) differs from the server's native protocol.

Native-version clients receive recipe sync as normal.

Requirements

  • Minecraft 1.21.10+
  • Fabric Loader >=0.18.0
  • Fabric API (with fabric-recipe-api-v1)
  • ViaFabric (optional) — the mod does nothing without it but won't crash

Building

./gradlew build

Output jar is in build/libs/.

License

MIT

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Where Did I Die?

价格:0 墨喵币
下载量:0

查看详情
Fake Mobs

价格:0 墨喵币
下载量:0

查看详情
Tpa+++

价格:0 墨喵币
下载量:0

查看详情
Skyhook-Ziplined!

价格:0 墨喵币
下载量:0

查看详情