Loosen access for BucketItem's canBlockContainFluid (#9421)

This commit is contained in:
TelepathicGrunt authored and GitHub committed 2023-03-28 13:34:10 -07:00
1 parent 9f895a79f2
commit d448ffd539
1 file changed
+1 -1
@@ -107,7 +107,7 @@
+ private final java.util.function.Supplier<? extends Fluid> fluidSupplier;
+ public Fluid getFluid() { return fluidSupplier.get(); }
+
+ private boolean canBlockContainFluid(Level worldIn, BlockPos posIn, BlockState blockstate)
+ protected boolean canBlockContainFluid(Level worldIn, BlockPos posIn, BlockState blockstate)
+ {
+ return blockstate.m_60734_() instanceof LiquidBlockContainer && ((LiquidBlockContainer)blockstate.m_60734_()).m_6044_(worldIn, posIn, blockstate, this.f_40687_);
}