1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Split up if statements

This commit is contained in:
Senne 2021-06-28 10:57:17 +02:00
parent e40f7996bf
commit c16e444995
No known key found for this signature in database
GPG Key ID: EA68733326BBA376

View File

@ -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;
}
}