Skip to content

Commit

Permalink
add .toLowerCase() on the physical key section
Browse files Browse the repository at this point in the history
  • Loading branch information
ryderbelserion committed Aug 26, 2024
1 parent 4eaa13a commit b1bfd3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit b1bfd3d

Please sign in to comment.