@@ -69,16 +69,15 @@ public void setRecipe(IRecipeLayoutBuilder layoutBuilder, BrewingRecipe recipe,
69
69
.setFluidRenderer (capacity , false , 16 , BrewerScreen .FLUID_AREA_HEIGHT )
70
70
.setOverlay (guiHelper .createDrawable (TEXTURE , 154 , 17 , 16 , BrewerScreen .FLUID_AREA_HEIGHT ), 0 , 0 );
71
71
72
- if (recipe instanceof ItemBrewingRecipe r ) {
73
- firstSlot .addIngredients (r . firstIngredient () );
74
- secondSlot .addIngredients (r . secondIngredient () );
75
- resultSlot .addItemStack (r . result () );
76
- } else if (recipe instanceof FluidBrewingRecipe r ) {
77
- firstSlot .addIngredients (r . firstIngredient () );
78
- secondSlot .addIngredients (r . secondIngredient () );
79
- resultSlot .addItemStack (r . result () );
72
+ if (recipe instanceof ItemBrewingRecipe ( var firstIngredient , var secondIngredient , var result ) ) {
73
+ firstSlot .addIngredients (firstIngredient );
74
+ secondSlot .addIngredients (secondIngredient );
75
+ resultSlot .addItemStack (result );
76
+ } else if (recipe instanceof FluidBrewingRecipe ( var firstIngredient , var secondIngredient , var ingredient , var result ) ) {
77
+ firstSlot .addIngredients (firstIngredient );
78
+ secondSlot .addIngredients (secondIngredient );
79
+ resultSlot .addItemStack (result );
80
80
81
- var ingredient = r .fluid ();
82
81
var amount = FluidUnit .convert (ingredient .getAmount (), ingredient .getUnit (), FluidBridge .get ().getFluidUnit ());
83
82
for (Fluid fluid : ingredient .fluid ().getFluids ()) {
84
83
tank .addFluidStack (fluid , amount , ingredient .nbt ());
0 commit comments