Fix item tags not being saved when going through a builder

This commit is contained in:
TheMode 2021-04-12 17:11:28 +02:00
parent 1e99810451
commit 2755add8df

View File

@ -261,6 +261,7 @@ public abstract class ItemMetaBuilder {
@Contract(value = "_, _ -> new", pure = true)
public static @NotNull ItemMetaBuilder fromNBT(@NotNull ItemMetaBuilder src, @NotNull NBTCompound nbtCompound) {
ItemMetaBuilder dest = src.getSupplier().get();
dest.nbt = nbtCompound.deepClone();
NBTUtils.loadDataIntoMeta(dest, nbtCompound);
return dest;
}