Fix: Bucket Handling

* Restored Reservoir special multi-block handling (thx git)
* Restored sneaking behavior
This commit is contained in:
HenryLoenwind committed 2015-04-13 22:10:19 +02:00
1 parent 731e283dfa
commit 6e47f3da27
2 files changed
+12 -4

No files matched your search

@@ -95,6 +95,10 @@ public abstract class BlockEio extends Block {
}
}
if (entityPlayer.isSneaking()) {
return false;
}
if (te instanceof ITankAccess) {
if (FluidUtil.fillInternalTankFromPlayerHandItem(world, x, y, z, entityPlayer, (ITankAccess) te)) {
return true;
@@ -104,10 +108,6 @@ public abstract class BlockEio extends Block {
}
}
if(entityPlayer.isSneaking()) {
return false;
}
return openGui(world, x, y, z, entityPlayer, side);
}
@@ -19,6 +19,7 @@ import crazypants.enderio.gui.IResourceTooltipProvider;
import crazypants.enderio.machine.reservoir.TileReservoir.Pos;
import crazypants.enderio.tool.ToolUtil;
import crazypants.util.BlockCoord;
import crazypants.util.FluidUtil;
import crazypants.vecmath.Vector3d;
public class BlockReservoir extends BlockEio implements IResourceTooltipProvider {
@@ -69,11 +70,18 @@ public class BlockReservoir extends BlockEio implements IResourceTooltipProvider
}
return true;
}
if (FluidUtil.fillInternalTankFromPlayerHandItem(world, x, y, z, entityPlayer, tank)) {
return true;
}
if (FluidUtil.fillPlayerHandItemFromInternalTank(world, x, y, z, entityPlayer, tank)) {
return true;
}
}
return super.onBlockActivated(world, x, y, z, entityPlayer, par6, par7, par8, par9);
}
@Override
@SideOnly(Side.CLIENT)
public AxisAlignedBB getSelectedBoundingBoxFromPool(World world, int x, int y, int z) {