Skip to content

Commit

Permalink
fixed: fluid of entity buckets was not placed
Browse files Browse the repository at this point in the history
  • Loading branch information
cech12 committed Dec 31, 2023
1 parent 03b7ea6 commit 3a0282e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cicd-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
with:
java-version: 17
subproject: forge
title-prefix: forge-
curseforge-id: 560156
game-versions: |
1.20.2
Expand All @@ -72,6 +73,7 @@ jobs:
with:
java-version: 17
subproject: forge
title-prefix: forge-
modrinth-id: DItE655o
game-versions: |
1.20.2
Expand All @@ -89,6 +91,7 @@ jobs:
with:
java-version: 17
subproject: neoforge
title-prefix: neoforge-
curseforge-id: 560156
game-versions: |
1.20.2
Expand All @@ -106,6 +109,7 @@ jobs:
with:
java-version: 17
subproject: neoforge
title-prefix: neoforge-
modrinth-id: DItE655o
game-versions: |
1.20.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ItemStack dispenseFluidContainer(BlockSource source, ItemStack stack) {

@Override
public Fluid getContainedFluid(ItemStack stack) {
return FluidUtil.getFluidContained(stack).orElse(FluidStack.EMPTY).getFluid();
return FluidUtil.getFluidHandler(stack).map(fluidHandler -> fluidHandler.getFluidInTank(0)).orElse(FluidStack.EMPTY).getFluid();
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ItemStack dispenseFluidContainer(BlockSource source, ItemStack stack) {

@Override
public Fluid getContainedFluid(ItemStack stack) {
return FluidUtil.getFluidContained(stack).orElse(FluidStack.EMPTY).getFluid();
return FluidUtil.getFluidHandler(stack).map(fluidHandler -> fluidHandler.getFluidInTank(0)).orElse(FluidStack.EMPTY).getFluid();
}

@Override
Expand Down

0 comments on commit 3a0282e

Please sign in to comment.