This commit is contained in:
parent
8dbab8f62e
commit
2c792a72ac
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ public class DynamicCellItem extends Item implements ItemFluidInfo {
|
||||||
Fluid containedFluid = getFluid(stack);
|
Fluid containedFluid = getFluid(stack);
|
||||||
|
|
||||||
BlockHitResult hitResult = raycast(world, player, containedFluid == Fluids.EMPTY ? RaycastContext.FluidHandling.SOURCE_ONLY : RaycastContext.FluidHandling.NONE);
|
BlockHitResult hitResult = raycast(world, player, containedFluid == Fluids.EMPTY ? RaycastContext.FluidHandling.SOURCE_ONLY : RaycastContext.FluidHandling.NONE);
|
||||||
if (hitResult.getType() == HitResult.Type.MISS) {
|
if (hitResult.getType() == HitResult.Type.MISS || !(containedFluid instanceof FlowableFluid)) {
|
||||||
return TypedActionResult.pass(stack);
|
return TypedActionResult.pass(stack);
|
||||||
}
|
}
|
||||||
if (hitResult.getType() != HitResult.Type.BLOCK) {
|
if (hitResult.getType() != HitResult.Type.BLOCK) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue