From 7b8fd2b0614337fdda77a44f578f72b19af54018 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 9 Dec 2023 14:59:43 +0100 Subject: [PATCH] Fix 1.17->1.16 map data type reading Fixes #646 --- .../viabackwards/api/rewriters/EntityRewriterBase.java | 1 + .../viabackwards/api/rewriters/MapColorRewriter.java | 4 +--- .../protocol/rewriter/BlockItemPacketRewriter1_99.java | 8 +++++--- .../protocol/rewriter/EntityPacketRewriter1_99.java | 1 + 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java index 525b5b09..f5450cde 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/rewriters/EntityRewriterBase.java @@ -199,6 +199,7 @@ public abstract class EntityRewriterBase { public BlockItemPacketRewriter1_99(final Protocol1_98To_99 protocol) { @@ -57,6 +57,8 @@ public final class BlockItemPacketRewriter1_99 extends ItemRewriter(protocol).register(ClientboundPackets1_20_3.DECLARE_RECIPES); + //TODO Particles in explosion packet + + new RecipeRewriter1_20_3<>(protocol).register(ClientboundPackets1_20_3.DECLARE_RECIPES); } } \ No newline at end of file diff --git a/template/src/main/java/com/viaversion/viabackwards/template/protocol/rewriter/EntityPacketRewriter1_99.java b/template/src/main/java/com/viaversion/viabackwards/template/protocol/rewriter/EntityPacketRewriter1_99.java index b7470c58..644762e5 100644 --- a/template/src/main/java/com/viaversion/viabackwards/template/protocol/rewriter/EntityPacketRewriter1_99.java +++ b/template/src/main/java/com/viaversion/viabackwards/template/protocol/rewriter/EntityPacketRewriter1_99.java @@ -93,6 +93,7 @@ public final class EntityPacketRewriter1_99 extends EntityRewriter