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 committed Aug 11, 2023
1 parent e1937d6 commit a67a571
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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 a67a571

Please sign in to comment.