Update getPickBlock() to use the new non-deprecated version.

This commit is contained in:
Halvor Lyche Strandvoll committed 2015-07-08 12:34:02 +02:00
1 parent 13f27b6732
commit 037e1e553f
5 files changed
+14 -15

No files matched your search

@@ -51,11 +51,11 @@ public class BlockBounding extends Block implements IPeripheralProvider
}
@Override
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z)
public ItemStack getPickBlock(MovingObjectPosition target, World world, int x, int y, int z, EntityPlayer player)
{
try {
TileEntityBoundingBlock tileEntity = (TileEntityBoundingBlock)world.getTileEntity(x, y, z);
return world.getBlock(tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ).getPickBlock(target, world, tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ);
return world.getBlock(tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ).getPickBlock(target, world, tileEntity.mainX, tileEntity.mainY, tileEntity.mainZ, player);
} catch(Exception e) {
return null;
}