fix #2197
This commit is contained in:
parent
3dfb66ea86
commit
5b650bf221
|
@ -42,18 +42,31 @@ public class StripesHandlerBucket implements IStripesHandler {
|
||||||
pipe.sendItem(emptyBucket, direction.getOpposite());
|
pipe.sendItem(emptyBucket, direction.getOpposite());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
} else if (underblock instanceof IFluidBlock) {
|
} else {
|
||||||
Fluid fluid = ((IFluidBlock) underblock).getFluid();
|
ItemStack filledBucket = null;
|
||||||
FluidStack fluidStack = new FluidStack(fluid, 1000);
|
|
||||||
ItemStack filledBucket = FluidContainerRegistry.fillFluidContainer(fluidStack, emptyBucket);
|
if (underblock instanceof IFluidBlock) {
|
||||||
|
Fluid fluid = ((IFluidBlock) underblock).getFluid();
|
||||||
|
FluidStack fluidStack = new FluidStack(fluid, 1000);
|
||||||
|
filledBucket = FluidContainerRegistry.fillFluidContainer(fluidStack, emptyBucket);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (underblock == Blocks.lava) {
|
||||||
|
filledBucket = new ItemStack(Items.lava_bucket, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (underblock == Blocks.water) {
|
||||||
|
filledBucket = new ItemStack(Items.water_bucket, 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (filledBucket != null) {
|
if (filledBucket != null) {
|
||||||
world.setBlockToAir(x, y - 1, z);
|
world.setBlockToAir(x, y - 1, z);
|
||||||
|
|
||||||
stack.stackSize = 0;
|
stack.stackSize = 0;
|
||||||
pipe.sendItem(filledBucket, direction.getOpposite());
|
pipe.sendItem(filledBucket, direction.getOpposite());
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue