Skip to content

Commit

Permalink
Fixed 0 appearing sometimes in the CustomModelData
Browse files Browse the repository at this point in the history
  • Loading branch information
ImCodist committed Jan 2, 2024
1 parent 8247aae commit 9ce68be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/xyz/imcodist/ui/ActionEditorUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ private Integer getCustomModelData(ItemStack item) {
NbtElement nbtElement = item.getNbt().get("CustomModelData");
if (nbtElement != null) {
existingCustomModelData = Integer.parseInt(nbtElement.toString());
if (existingCustomModelData == 0) existingCustomModelData = null;
}
}

Expand Down

0 comments on commit 9ce68be

Please sign in to comment.