diff --git a/build.gradle b/build.gradle index 538e186..4545503 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,7 @@ repositories { } dependencies { - compileOnly "com.viaversion:viaversion-common:5.0.4" + compileOnly "com.viaversion:viaversion-common:5.1.0" compileOnly "com.google.guava:guava:33.3.1-jre" compileOnly "io.netty:netty-handler:4.1.114.Final" } diff --git a/src/main/java/net/raphimc/vialegacy/api/remapper/LegacyItemRewriter.java b/src/main/java/net/raphimc/vialegacy/api/remapper/LegacyItemRewriter.java index 9a6e00c..0b6a1a0 100644 --- a/src/main/java/net/raphimc/vialegacy/api/remapper/LegacyItemRewriter.java +++ b/src/main/java/net/raphimc/vialegacy/api/remapper/LegacyItemRewriter.java @@ -21,6 +21,7 @@ import com.viaversion.nbt.tag.ListTag; import com.viaversion.nbt.tag.StringTag; import com.viaversion.viaversion.api.connection.UserConnection; +import com.viaversion.viaversion.api.minecraft.Particle; import com.viaversion.viaversion.api.minecraft.item.Item; import com.viaversion.viaversion.api.protocol.Protocol; import com.viaversion.viaversion.api.protocol.packet.ClientboundPacketType; @@ -136,6 +137,11 @@ public Item handleItemToServer(final UserConnection user, final Item item) { return item; } + @Override + public void rewriteParticle(final UserConnection userConnection, final Particle particle) { + // Rewriting particles in the item rewriter? VV moment + } + @Override public Type itemType() { return this.itemType;