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