From b1bfd3d74cccf74996fbfea62d744e61082d6c09 Mon Sep 17 00:00:00 2001 From: Ryder Belserion Date: Mon, 26 Aug 2024 13:33:10 -0400 Subject: [PATCH] add .toLowerCase() on the physical key section --- .../com/badbones69/crazycrates/tasks/crates/CrateManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java b/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java index 4e9b97042..20b8865aa 100644 --- a/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java +++ b/src/main/java/com/badbones69/crazycrates/tasks/crates/CrateManager.java @@ -1302,7 +1302,7 @@ private ItemBuilder getKey(@NotNull final FileConfiguration file) { final boolean glowing = file.getBoolean("Crate.PhysicalKey.Glowing", true); final boolean hideFlags = file.getBoolean("Crate.PhysicalKey.HideItemFlags", false); - final ItemBuilder itemBuilder = file.contains("Crate.PhysicalKey.Data") ? new ItemBuilder().fromBase64(file.getString("Crate.PhysicalKey.Data", "")) : new ItemBuilder().withType(file.getString("Crate.PhysicalKey.Item", "tripwire_hook")); + final ItemBuilder itemBuilder = file.contains("Crate.PhysicalKey.Data") ? new ItemBuilder().fromBase64(file.getString("Crate.PhysicalKey.Data", "")) : new ItemBuilder().withType(file.getString("Crate.PhysicalKey.Item", "tripwire_hook").toLowerCase()); return itemBuilder.setDisplayName(name).setDisplayLore(lore).setGlowing(glowing).setHidingItemFlags(hideFlags).setCustomModelData(customModelData); }