From 57ca5f1bf5d8000c1aac3ee490b0c85bdbf35b2f Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 21 Sep 2023 10:35:42 +1000 Subject: [PATCH] Fix particle handling --- .../rewriter/BlockItemPacketRewriter1_20_2.java | 4 +--- settings.gradle.kts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/rewriter/BlockItemPacketRewriter1_20_2.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/rewriter/BlockItemPacketRewriter1_20_2.java index 9d9e5e36..15b590f6 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/rewriter/BlockItemPacketRewriter1_20_2.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/rewriter/BlockItemPacketRewriter1_20_2.java @@ -42,7 +42,6 @@ import com.viaversion.viaversion.protocols.protocol1_20_2to1_20.packet.Clientbou import com.viaversion.viaversion.protocols.protocol1_20_2to1_20.packet.ServerboundPackets1_20_2; import com.viaversion.viaversion.protocols.protocol1_20_2to1_20.rewriter.RecipeRewriter1_20_2; import com.viaversion.viaversion.protocols.protocol1_20_2to1_20.type.ChunkType1_20_2; -import com.viaversion.viaversion.protocols.protocol1_20to1_19_4.Protocol1_20To1_19_4; import com.viaversion.viaversion.rewriter.BlockRewriter; import com.viaversion.viaversion.util.Key; import com.viaversion.viaversion.util.MathUtil; @@ -295,8 +294,7 @@ public final class BlockItemPacketRewriter1_20_2 extends ItemRewriter { final int id = wrapper.get(Type.VAR_INT, 0); - // Use 1.19.4->1.20 mappings - final ParticleMappings mappings = Protocol1_20To1_19_4.MAPPINGS.getParticleMappings(); + final ParticleMappings mappings = Protocol1_20To1_20_2.MAPPINGS.getParticleMappings(); if (mappings.isBlockParticle(id)) { final int data = wrapper.read(Type.VAR_INT); wrapper.write(Type.VAR_INT, protocol.getMappingData().getNewBlockStateId(data)); diff --git a/settings.gradle.kts b/settings.gradle.kts index b422af03..3f90d2e9 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -15,7 +15,7 @@ dependencyResolutionManagement { pluginManagement { plugins { - id("net.kyori.blossom") version "2.0.1" + id("net.kyori.blossom") version "2.1.0" id("org.jetbrains.gradle.plugin.idea-ext") version "1.1.7" id("com.github.johnrengelman.shadow") version "8.1.1" }