From 5981bff4cf45e52b312bcd5caa124a8c66e48c1f Mon Sep 17 00:00:00 2001 From: thedarkcolour <30441001+thedarkcolour@users.noreply.github.com> Date: Mon, 27 May 2024 20:00:00 -0700 Subject: [PATCH] Fix barrel fluid transformation recipes only crafting witch water --- .../thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java b/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java index 9a1749e6..8d3c9399 100644 --- a/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java +++ b/src/main/java/thedarkcolour/exdeorum/blockentity/BarrelBlockEntity.java @@ -525,12 +525,13 @@ public class BarrelBlockEntity extends EBlockEntity { barrel.currentTransformRecipe = null; } else { barrel.progress += catalysts * (1.0f / barrel.currentTransformRecipe.duration()); + if (barrel.progress >= 1.0f - Mth.EPSILON) { // Reset progress barrel.progress = 0.0f; level.playSound(null, pos, SoundEvents.BREWING_STAND_BREW, SoundSource.BLOCKS, 1.0f, 0.6f); barrel.tank.setFluid(FluidStack.EMPTY); - barrel.tank.fill(new FluidStack(EFluids.WITCH_WATER.get(), 1000), IFluidHandler.FluidAction.EXECUTE); + barrel.tank.fill(new FluidStack(recipe.resultFluid(), 1000), IFluidHandler.FluidAction.EXECUTE); } barrel.markUpdated(); }