diff --git a/api/src/main/java/com/viaversion/viaversion/api/minecraft/Particle.java b/api/src/main/java/com/viaversion/viaversion/api/minecraft/Particle.java index af86da467..ff174793b 100644 --- a/api/src/main/java/com/viaversion/viaversion/api/minecraft/Particle.java +++ b/api/src/main/java/com/viaversion/viaversion/api/minecraft/Particle.java @@ -22,6 +22,7 @@ */ package com.viaversion.viaversion.api.minecraft; +import com.viaversion.viaversion.api.minecraft.item.Item; import com.viaversion.viaversion.api.protocol.packet.PacketWrapper; import com.viaversion.viaversion.api.type.Type; import com.viaversion.viaversion.util.IdHolder; @@ -118,7 +119,11 @@ public final class Particle implements IdHolder { } public ParticleData copy() { - return new ParticleData<>(type, value); + if (value instanceof Item item) { + return new ParticleData<>(type, (T) item.copy()); + } else { + return new ParticleData<>(type, value); + } } @Override