From cc5ec57743ed205694e76a01b3e3635d1442e4d9 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Sat, 24 Aug 2024 13:13:17 -0400 Subject: [PATCH] fix display data not displaying --- .../badbones69/crazycrates/api/builders/ItemBuilder.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/badbones69/crazycrates/api/builders/ItemBuilder.java b/src/main/java/com/badbones69/crazycrates/api/builders/ItemBuilder.java index d577f806f..1ef7daa41 100644 --- a/src/main/java/com/badbones69/crazycrates/api/builders/ItemBuilder.java +++ b/src/main/java/com/badbones69/crazycrates/api/builders/ItemBuilder.java @@ -1,7 +1,9 @@ package com.badbones69.crazycrates.api.builders; +import com.ryderbelserion.vital.paper.util.ItemUtil; import org.bukkit.Material; import org.bukkit.inventory.ItemStack; +import org.jetbrains.annotations.NotNull; public class ItemBuilder extends com.ryderbelserion.vital.paper.api.builders.items.ItemBuilder { @@ -26,4 +28,11 @@ public ItemBuilder(final ItemStack itemStack) { } public ItemBuilder() {} + + @Override + public @NotNull ItemBuilder fromBase64(@NotNull String base64) { + if (base64.isEmpty()) return this; + + return new ItemBuilder(ItemUtil.fromBase64(base64)); + } } \ No newline at end of file