Add 1.20.70 & 1.20.60 support + Fix crafting issue (#9)

This commit is contained in:
C. Pham
2025-04-05 04:43:37 -04:00
committed by GitHub
parent 6f8d6e922d
commit bcb3e990d3
24 changed files with 12442 additions and 127 deletions

View File

@@ -677,7 +677,9 @@ func marshalShaped(r protocol.IO, recipe *ShapedRecipe) {
r.UUID(&recipe.UUID)
r.String(&recipe.Block)
r.Varint32(&recipe.Priority)
r.Bool(&recipe.AssumeSymmetry)
if IsProtoGTE(r, ID671) {
r.Bool(&recipe.AssumeSymmetry)
}
if IsProtoGTE(r, ID685) {
protocol.Single(r, &recipe.UnlockRequirement)
}