Fix component
This commit is contained in:
@@ -11,7 +11,7 @@ loader_version=0.16.13
|
|||||||
fabric_version=0.120.0+1.21.5
|
fabric_version=0.120.0+1.21.5
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=3.3.5
|
mod_version=3.3.6
|
||||||
maven_group=systems.brn
|
maven_group=systems.brn
|
||||||
archives_base_name=Serverstorage
|
archives_base_name=Serverstorage
|
||||||
|
|
||||||
|
@@ -3,6 +3,7 @@ package systems.brn.serverstorage.lib;
|
|||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
import net.minecraft.component.DataComponentTypes;
|
import net.minecraft.component.DataComponentTypes;
|
||||||
import net.minecraft.component.type.LoreComponent;
|
import net.minecraft.component.type.LoreComponent;
|
||||||
|
import net.minecraft.component.type.TooltipDisplayComponent;
|
||||||
import net.minecraft.item.Item;
|
import net.minecraft.item.Item;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NbtCompound;
|
import net.minecraft.nbt.NbtCompound;
|
||||||
@@ -129,7 +130,9 @@ public class Util {
|
|||||||
|
|
||||||
LoreComponent newLore = new LoreComponent(filteredLines);
|
LoreComponent newLore = new LoreComponent(filteredLines);
|
||||||
|
|
||||||
|
|
||||||
newStack.set(DataComponentTypes.LORE, newLore);
|
newStack.set(DataComponentTypes.LORE, newLore);
|
||||||
|
newStack.set(DataComponentTypes.TOOLTIP_DISPLAY, TooltipDisplayComponent.DEFAULT);
|
||||||
return newStack;
|
return newStack;
|
||||||
} else {
|
} else {
|
||||||
return stack;
|
return stack;
|
||||||
|
Reference in New Issue
Block a user