Skip to content

Commit

Permalink
Fix boiling not doing anything in cauldron fill recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightMiner committed Jun 30, 2018
1 parent 75f9139 commit e018120
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -22,7 +22,7 @@ public class CauldronFluidRecipe implements ISimpleCauldronRecipe {
protected RecipeMatch input;
private ItemStack result;
@Nullable
private Boolean boiling;
protected Boolean boiling;
@Nullable
protected CauldronState fluid;
private SoundEvent sound;
Expand Down
Expand Up @@ -67,7 +67,8 @@ public FillCauldronRecipe(RecipeMatch input, Fluid fluid, int amount) {

@Override
public boolean matches(ItemStack stack, boolean boiling, int level, CauldronState state) {
if(level == InspirationsRegistry.getCauldronMax() || (level > 0 && !state.matches(fluid))) {
if(level == InspirationsRegistry.getCauldronMax() || (level > 0 && !state.matches(fluid))
|| (this.boiling != null && boiling != this.boiling.booleanValue())) {
return false;
}

Expand Down

0 comments on commit e018120

Please sign in to comment.