Skip to content

Commit

Permalink
fix: if meta instanceof LeatherArmorMeta apply ItemMeta to ItemStack
Browse files Browse the repository at this point in the history
  • Loading branch information
iamtakagi committed Sep 14, 2024
1 parent df88812 commit 7bfc1da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>net.iamtakagi</groupId>
<artifactId>iroha</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/iamtakagi/iroha/InventoryUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public static ItemStack deserializeItemStack(String in) {
}
}

if (meta != null && (meta.hasDisplayName() || meta.hasLore())) {
if (meta != null && (meta.hasDisplayName() || meta.hasLore() || meta instanceof LeatherArmorMeta)) {
item.setItemMeta(meta);
}

Expand Down

0 comments on commit 7bfc1da

Please sign in to comment.