Cells should work on caludron. Closes #2490

This commit is contained in:
drcrazy 2021-09-20 05:38:43 +03:00
parent 6b89b08ff0
commit 4c4881e7e5
3 changed files with 77 additions and 0 deletions

View file

@ -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 {