Skip to content

Commit

Permalink
added parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
sh0inx committed May 19, 2024
1 parent 44884cd commit 02f9e73
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -702,8 +702,9 @@ public int getIslandCrystals(ItemStack itemStack) {
if (itemStack == null || itemStack.getType() == Material.AIR) return 0;

return NBT.get(itemStack, readableItemNBT -> {
if(readableItemNBT.getCompound("iridiumskyblock").hasTag("islandCrystals"))
if(readableItemNBT.getCompound("iridiumskyblock").hasTag("islandCrystals")) {
return readableItemNBT.getCompound("iridiumskyblock").getInteger("islandCrystals");
}
return 0;
});
}
Expand Down

0 comments on commit 02f9e73

Please sign in to comment.