Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Bucket Behavior to Cells #2660

Merged
merged 11 commits into from
Feb 3, 2025
Prev Previous commit
Next Next commit
forgor to remove the method
ghzdude committed Nov 13, 2024
commit 78c3482dfe34245f7eadc90cfae7acb55a23bdd2
Original file line number Diff line number Diff line change
@@ -92,17 +92,6 @@ public ActionResult<ItemStack> onItemUse(EntityPlayer player, World world, Block
return pass(stack);
}

private boolean transfer(IFluidHandler source, IFluidHandler dest) {
var fluid = source.drain(Integer.MAX_VALUE, false);
int filled = dest.fill(fluid, false);
if (fluid == null || fluid.amount == 0 || filled == 0)
return false;

source.drain(filled, true);
dest.fill(fluid, true);
return true;
}

// copied from Item.java
@Nullable
private static RayTraceResult rayTrace(World worldIn, EntityPlayer playerIn) {