Cells should work on caludron. Closes #2490
This commit is contained in:
parent
6b89b08ff0
commit
4c4881e7e5
3 changed files with 77 additions and 0 deletions
|
@ -186,6 +186,7 @@ public class DynamicCellItem extends Item implements ItemFluidInfo {
|
|||
ItemStack itemStack = ((FluidDrainable) hitState.getBlock()).tryDrainFluid(world, hitPos, hitState);
|
||||
if (!itemStack.isEmpty() && itemStack.getItem() instanceof ItemFluidInfo) {
|
||||
Fluid drainFluid = ((ItemFluidInfo) itemStack.getItem()).getFluid(itemStack);
|
||||
// TODO: Change to ItemUsage.exchangeStack
|
||||
if (stack.getCount() == 1) {
|
||||
stack = getCellWithFluid(drainFluid, 1);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue