Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
ybw0014 committed Nov 9, 2023
1 parent 3d73d85 commit 34522d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/main/java/net/guizhanss/fastmachines/FastMachines.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import com.google.common.base.Preconditions;

import org.bukkit.Tag;
import org.bukkit.plugin.Plugin;

import io.github.thebusybiscuit.slimefun4.libraries.dough.updater.GitHubBuildsUpdater;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,11 @@
import javax.annotation.Nonnull;
import javax.annotation.ParametersAreNonnullByDefault;

import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;

import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;

import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;

import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
import io.github.thebusybiscuit.slimefun4.libraries.dough.collections.Pair;
import io.github.thebusybiscuit.slimefun4.utils.SlimefunUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public final class RecipeUtils {
if (aItem == null) return -1;
if (bItem == null) return 1;
if (SlimefunUtils.isItemSimilar(aItem, bItem, false, true, true)) return 0;
if (Objects.hashCode(aItem) != Objects.hashCode(bItem)) return Objects.hashCode(aItem) - Objects.hashCode(bItem);
if (Objects.hashCode(aItem) != Objects.hashCode(bItem))
return Objects.hashCode(aItem) - Objects.hashCode(bItem);
if (aItem.getAmount() != bItem.getAmount()) return aItem.getAmount() - bItem.getAmount();
return 0;
};
Expand Down

0 comments on commit 34522d3

Please sign in to comment.