quick fix : Redundant array creation for calling varargs method

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 01655b93c8
commit 7e0c202772
1 file changed
+2 -2
@@ -146,9 +146,9 @@ public abstract class RecipeHandlerBase extends TemplateRecipeHandler {
if (tank.position.contains(relMouse)) {
if ((tank.fluid != null) && tank.fluid.amount > 0) {
if (usage) {
return GuiUsageRecipe.openRecipeGui("liquid", new Object[] {tank.fluid});
return GuiUsageRecipe.openRecipeGui("liquid", tank.fluid);
} else {
return GuiCraftingRecipe.openRecipeGui("liquid", new Object[] {tank.fluid});
return GuiCraftingRecipe.openRecipeGui("liquid", tank.fluid);
}
}
}