Fixed bug introduced in previous commit (#2677)

* Fixes the bug mentioned in #2675
* Fixed bug introduced with previous commit
This commit is contained in:
Ayutac 2021-12-23 03:19:33 +01:00 committed by GitHub
parent 2c792a72ac
commit d6dfe57963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -207,6 +207,8 @@ public class DynamicCellItem extends Item implements ItemFluidInfo {
return TypedActionResult.success(resultStack, world.isClient());
}
} else {
if (!(containedFluid instanceof FlowableFluid))
return TypedActionResult.pass(stack);
BlockState placeState = world.getBlockState(placePos);
if (placeState.canBucketPlace(containedFluid)) {
placeFluid(player, world, placePos, hitResult, stack);