Skip to content

Commit

Permalink
intellij messed up my condition
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCataliasTNT2k authored and TheDevMinerTV committed Aug 11, 2023
1 parent bb5bf8d commit 3472e3b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static boolean checkHeldItem(ItemStack itemStack)
return false;
ItemMeta toolMeta = GriefPrevention.instance.config_claims_modificationTool.getItemMeta();
assert toolMeta != null;
return itemStack.getType() != GriefPrevention.instance.config_claims_modificationTool.getType()
return itemStack.getType() == GriefPrevention.instance.config_claims_modificationTool.getType()
&& heldItemMeta.getCustomModelData() == toolMeta.getCustomModelData()
&& heldItemMeta.isUnbreakable() == toolMeta.isUnbreakable()
&& heldItemMeta.getDisplayName().equals(toolMeta.getDisplayName()
Expand Down

0 comments on commit 3472e3b

Please sign in to comment.