quick fix : Redundant array creation for calling varargs method

This commit is contained in:
Alexdoru committed 2023-01-26 01:36:58 +01:00
1 parent 0a82e6b24d
commit da670a79c4
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);
}
}
}