From c16e44499564bf74919a7462eaef72d2edcc6325 Mon Sep 17 00:00:00 2001 From: Senne Date: Mon, 28 Jun 2021 10:57:17 +0200 Subject: [PATCH] Split up if statements --- .../thebusybiscuit/slimefun4/utils/SlimefunUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/SlimefunUtils.java b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/SlimefunUtils.java index 5d1b663d1..21e1cbd9a 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/utils/SlimefunUtils.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/utils/SlimefunUtils.java @@ -297,8 +297,10 @@ public final class SlimefunUtils { } if (checkLore) { - if (itemMeta.hasLore() && sfitemMeta.hasLore() && !equalsLore(itemMeta.getLore(), sfitemMeta.getLore()) - || itemMeta.hasLore() != sfitemMeta.hasLore()) { + if (itemMeta.hasLore() && sfitemMeta.hasLore() && !equalsLore(itemMeta.getLore(), sfitemMeta.getLore())) { + return false; + } + else if (itemMeta.hasLore() != sfitemMeta.hasLore()) { return false; } }