Skip to content

Commit

Permalink
Allow placing under ghost lights
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeow committed Nov 15, 2020
1 parent 497613a commit f000b64
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public FluidState getFluidState(BlockState state) {

@Override
public boolean isValidPosition(BlockState state, IWorldReader worldIn, BlockPos pos) {
return Block.hasEnoughSolidSide(worldIn, pos.down(), Direction.UP) && !worldIn.getBlockState(pos.up()).isSolid();
return Block.hasEnoughSolidSide(worldIn, pos.down(), Direction.UP) && (!worldIn.getBlockState(pos.up()).isSolid() || worldIn.getBlockState(pos.up()).getBlock() instanceof BlockGhostLight);
}

@Override
Expand Down

0 comments on commit f000b64

Please sign in to comment.