mirror of
https://github.com/Minestom/Minestom.git
synced 2025-03-13 15:20:10 +01:00
Fix item tags not being saved when going through a builder
This commit is contained in:
parent
1e99810451
commit
2755add8df
@ -261,6 +261,7 @@ public abstract class ItemMetaBuilder {
|
|||||||
@Contract(value = "_, _ -> new", pure = true)
|
@Contract(value = "_, _ -> new", pure = true)
|
||||||
public static @NotNull ItemMetaBuilder fromNBT(@NotNull ItemMetaBuilder src, @NotNull NBTCompound nbtCompound) {
|
public static @NotNull ItemMetaBuilder fromNBT(@NotNull ItemMetaBuilder src, @NotNull NBTCompound nbtCompound) {
|
||||||
ItemMetaBuilder dest = src.getSupplier().get();
|
ItemMetaBuilder dest = src.getSupplier().get();
|
||||||
|
dest.nbt = nbtCompound.deepClone();
|
||||||
NBTUtils.loadDataIntoMeta(dest, nbtCompound);
|
NBTUtils.loadDataIntoMeta(dest, nbtCompound);
|
||||||
return dest;
|
return dest;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user