From 2fc40dd70dd079146931a498668353b96085ca93 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Thu, 5 Sep 2024 18:41:29 -0400 Subject: [PATCH] add default blank to display data --- .../java/com/badbones69/crazycrates/api/objects/Prize.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/badbones69/crazycrates/api/objects/Prize.java b/src/main/java/com/badbones69/crazycrates/api/objects/Prize.java index bd3274ac9..9ab80ca6e 100644 --- a/src/main/java/com/badbones69/crazycrates/api/objects/Prize.java +++ b/src/main/java/com/badbones69/crazycrates/api/objects/Prize.java @@ -11,7 +11,6 @@ import com.ryderbelserion.vital.paper.util.ItemUtil; import me.clip.placeholderapi.PlaceholderAPI; import net.kyori.adventure.text.serializer.plain.PlainTextComponentSerializer; -import org.bukkit.ChatColor; import org.bukkit.Material; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; @@ -293,7 +292,7 @@ public void broadcast(final Crate crate) { try { if (this.section.contains("DisplayData")) { - builder = builder.fromBase64(this.section.getString("DisplayData")); + builder = builder.fromBase64(this.section.getString("DisplayData", "")); } if (this.section.contains("DisplayName")) {