Skip to content

Commit

Permalink
Fix item loading
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Aug 18, 2018
1 parent ce8796a commit 68a253d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/util/ItemStorage.java
Expand Up @@ -227,7 +227,7 @@ public static ItemStack loadItemStack(DataKey root) {
Material material = null;
if (root.keyExists("type_key")) {
NamespacedKey key = new NamespacedKey(root.getString("type_namespace"), root.getString("type_key"));
material = Material.getMaterial(key.getKey(), false);
material = Material.getMaterial(key.getKey().toUpperCase(), false);
} else {
String raw = root.getString("type", root.getString("id"));
if (raw == null || raw.length() == 0) {
Expand Down

0 comments on commit 68a253d

Please sign in to comment.