mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
quick fix : Redundant 'if' statement
This commit is contained in:
1 parent
ce3ee201a3
commit
d0c3b57e22
29 files changed
+48
-130
No files matched your search
@@ -146,15 +146,10 @@ public abstract class RecipeHandlerBase extends TemplateRecipeHandler {
|
||||
if (tank.position.contains(relMouse)) {
|
||||
if ((tank.fluid != null) && tank.fluid.amount > 0) {
|
||||
if (usage) {
|
||||
if (!GuiUsageRecipe.openRecipeGui("liquid", new Object[] {tank.fluid})) {
|
||||
return false;
|
||||
}
|
||||
return GuiUsageRecipe.openRecipeGui("liquid", new Object[]{tank.fluid});
|
||||
} else {
|
||||
if (!GuiCraftingRecipe.openRecipeGui("liquid", new Object[] {tank.fluid})) {
|
||||
return false;
|
||||
}
|
||||
return GuiCraftingRecipe.openRecipeGui("liquid", new Object[]{tank.fluid});
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user