quick fix : 'if' statement with identical branches

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 04c7d32b53
commit fc54dde7ce
16 files changed
+39 -84

No files matched your search

@@ -171,15 +171,12 @@ public class FrypanLogic extends EquipLogic implements IActiveLogic {
}
public ItemStack getResultFor(ItemStack stack) {
if (stack == null) {
return null;
} else {
if (stack != null) {
ItemStack result = FurnaceRecipes.smelting().getSmeltingResult(stack);
if (result != null && result.getItem() instanceof ItemFood) // Only valid for food
return result.copy();
return null;
return result.copy();
}
return null;
}
public static int getItemBurnTime(ItemStack stack) {