Skip to content

Commit

Permalink
fix display data not displaying
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Aug 24, 2024
1 parent 4b002f7 commit cc5ec57
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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<ItemBuilder> {

Expand All @@ -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));
}
}

0 comments on commit cc5ec57

Please sign in to comment.