Skip to content

Commit

Permalink
Fluid Placers can place over flowing liquid, and v1.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Direwolf20-MC committed Nov 4, 2024
1 parent 35f5446 commit 38d9c01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ mod_name=Just Dire Things
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=1.4.7
mod_version=1.4.8
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public boolean placeFluid(FluidStack fluidStack, BlockPos blockPos) {
public boolean isBlockPosValid(BlockPos blockPos, FakePlayer fakePlayer) {
if (!level.getBlockState(blockPos).canBeReplaced())
return false;
if (level.getBlockState(blockPos).getBlock() instanceof LiquidBlock)
if (level.getBlockState(blockPos).getBlock() instanceof LiquidBlock liquidBlock && level.getFluidState(blockPos).isSource())
return false;
if (!canBreakAndPlaceAt(level, blockPos, fakePlayer))
return false;
Expand Down

0 comments on commit 38d9c01

Please sign in to comment.