Fix component

This commit is contained in:
2025-04-17 20:50:03 +02:00
parent d8c4773424
commit f87a0c6c14
2 changed files with 4 additions and 1 deletions

View File

@@ -11,7 +11,7 @@ loader_version=0.16.13
fabric_version=0.120.0+1.21.5
# Mod Properties
mod_version=3.3.5
mod_version=3.3.6
maven_group=systems.brn
archives_base_name=Serverstorage

View File

@@ -3,6 +3,7 @@ package systems.brn.serverstorage.lib;
import com.mojang.authlib.GameProfile;
import net.minecraft.component.DataComponentTypes;
import net.minecraft.component.type.LoreComponent;
import net.minecraft.component.type.TooltipDisplayComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
@@ -129,7 +130,9 @@ public class Util {
LoreComponent newLore = new LoreComponent(filteredLines);
newStack.set(DataComponentTypes.LORE, newLore);
newStack.set(DataComponentTypes.TOOLTIP_DISPLAY, TooltipDisplayComponent.DEFAULT);
return newStack;
} else {
return stack;