From 02f9e73604ba6d397f35def4ed75c323199ad593 Mon Sep 17 00:00:00 2001 From: Shyanne Date: Sat, 18 May 2024 23:56:58 -0400 Subject: [PATCH] added parentheses --- .../com/iridium/iridiumskyblock/managers/IslandManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java index a7c8fef2d..7fffeeade 100644 --- a/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java +++ b/src/main/java/com/iridium/iridiumskyblock/managers/IslandManager.java @@ -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; }); }