diff --git a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/packets/EntityPackets1_19.java b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/packets/EntityPackets1_19.java index cca86dc9..bdad1d58 100644 --- a/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/packets/EntityPackets1_19.java +++ b/common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_18_2to1_19/packets/EntityPackets1_19.java @@ -135,7 +135,7 @@ public final class EntityPackets1_19 extends EntityRewriter dimensions = new HashMap<>(); public @Nullable CompoundTag dimension(final String dimensionKey) { - return dimensions.get(dimensionKey); + final CompoundTag compoundTag = dimensions.get(dimensionKey); + return compoundTag != null ? compoundTag.clone() : null; } public void setDimensions(final Map dimensions) {