Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
khjxiaogu committed Sep 14, 2024
1 parent 8274c31 commit b008bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/com/teammoeg/caupona/blocks/pot/StewPot.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public ItemInteractionResult useItemOn(ItemStack held,BlockState state, Level wo
if (blockEntity.canAddFluid()) {
if (held.isEmpty() && player.isShiftKeyDown()) {
blockEntity.getTank().setFluid(FluidStack.EMPTY);
blockEntity.syncData();
return ItemInteractionResult.SUCCESS;
}
FluidStack out=Utils.extractFluid(held);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private boolean tryContianFluid() {
RecipeHolder<BowlContainingRecipe> recipe = BowlContainingRecipe.getRecipes(inv.getStackInSlot(9)).stream().filter(t->t.value().matches(this.tank.getFluid())).findFirst().orElse(null);
if (recipe != null) {
is.shrink(1);
inv.setStackInSlot(5, recipe.value().handle(tryAddSpice(tank.drain(250, FluidAction.EXECUTE))));
inv.setStackInSlot(10, recipe.value().handle(tryAddSpice(tank.drain(250, FluidAction.EXECUTE))));
return true;
}
}
Expand Down

0 comments on commit b008bc7

Please sign in to comment.